Properly handle dokku-installer installation
This commit is contained in:
1 parent
933a5c0abf
commit
bb525a3cf1
1 file changed
+5
-4
Vendored
+5
-4
@@ -55,13 +55,14 @@ case "$1" in
|
|||||||
echo "Setting up dokku-installer"
|
echo "Setting up dokku-installer"
|
||||||
/usr/share/dokku/contrib/dokku-installer.py onboot
|
/usr/share/dokku/contrib/dokku-installer.py onboot
|
||||||
|
|
||||||
echo "Starting dokku-installer"
|
|
||||||
if command -v systemctl &>/dev/null; then
|
if command -v systemctl &>/dev/null; then
|
||||||
systemctl daemon-reload
|
echo "Enabling dokku-installer"
|
||||||
|
systemctl enable dokku-installer
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if service dokku-installer status 2> /dev/null | grep -E "waiting|inactive" ; then
|
if echo $(service dokku-installer status 2> /dev/null || true) | grep -Eq "(inactive|waiting)" > /dev/null; then
|
||||||
service dokku-installer start
|
echo "Starting dokku-installer"
|
||||||
|
service dokku-installer start || echo "Unable to start dokku-installer"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user