Only trigger systemctl if that command exists
This commit is contained in:
1 parent
cac272a247
commit
89d96dfee1
1 file changed
+2
@@ -39,7 +39,9 @@ ExecStart=/usr/local/bin/dokku ps:restore
|
|||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
|
if command -v systemctl &>/dev/null; then
|
||||||
systemctl enable dokku-redeploy
|
systemctl enable dokku-redeploy
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user