Skip to content

Commit 6c6bfe1

Browse files
committed
notify about an empty php-fpm path
1 parent 32a9381 commit 6c6bfe1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

main.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ func init() {
2020
}
2121

2222
func main() {
23+
if viper.GetString("fpm") == "" {
24+
fmt.Println("php-fpm path not set")
25+
os.Exit(1)
26+
}
27+
2328
signalCh := make(chan os.Signal, 1)
2429
signal.Notify(signalCh, os.Interrupt)
2530
signal.Notify(signalCh, os.Kill)

0 commit comments

Comments
 (0)