mirror of https://github.com/statping/statping
line notify fixes - docker version
parent
9bdea90fb7
commit
4acc6a0f35
|
@ -1,4 +1,4 @@
|
|||
FROM hunterlong/statup:base-v0.52
|
||||
FROM hunterlong/statup:base-v0.55
|
||||
MAINTAINER "Hunter Long (https://github.com/hunterlong)"
|
||||
|
||||
# Locked version of Statup for 'latest' Docker tag
|
||||
|
|
4
Makefile
4
Makefile
|
@ -1,4 +1,4 @@
|
|||
VERSION=0.54
|
||||
VERSION=0.55
|
||||
BINARY_NAME=statup
|
||||
GOPATH:=$(GOPATH)
|
||||
GOCMD=go
|
||||
|
@ -92,6 +92,8 @@ docker-dev: clean docker-build-base
|
|||
|
||||
docker-push-dev:
|
||||
docker push hunterlong/statup:dev
|
||||
|
||||
docker-push-cypress:
|
||||
docker push hunterlong/statup:cypress
|
||||
|
||||
docker-push-latest: docker
|
||||
|
|
|
@ -159,7 +159,8 @@ func (u *LineNotify) OnSave() error {
|
|||
|
||||
// ON SERVICE FAILURE, DO YOUR OWN FUNCTIONS
|
||||
func (u *LineNotify) Install() error {
|
||||
inDb, err := lineNotify.Notification.IsInDatabase()
|
||||
var err error
|
||||
inDb := lineNotify.Notification.IsInDatabase()
|
||||
if !inDb {
|
||||
newNotifer, err := InsertDatabase(u.Notification)
|
||||
if err != nil {
|
||||
|
@ -169,4 +170,4 @@ func (u *LineNotify) Install() error {
|
|||
utils.Log(1, fmt.Sprintf("new notifier #%v installed: %v", newNotifer, u.Method))
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue