fix(watchdog): ensure watchdog binary is executable before starting the process
This commit is contained in:
@@ -94,6 +94,7 @@ func syncRunningInstancesToWatchdog() {
|
|||||||
|
|
||||||
func ensureWatchdogProcess() error {
|
func ensureWatchdogProcess() error {
|
||||||
watchdogName, err := getWatchdogBinaryName()
|
watchdogName, err := getWatchdogBinaryName()
|
||||||
|
exec.Command("chmod", "+x", filepath.Join(".", "watchdog", watchdogName)).Run()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user