Fix shellcheck violation

This commit is contained in:
Jose Diaz-Gonzalez
2016-01-02 04:31:48 -05:00
parent 5a74d5c247
commit 61f9ae6e67

3
debian/postinst vendored
View File

@@ -60,7 +60,8 @@ case "$1" in
systemctl enable dokku-installer
fi
if echo $(service dokku-installer status 2> /dev/null || true) | grep -Eq "(inactive|waiting)" > /dev/null; then
installer_status="$(service dokku-installer status 2> /dev/null || true)"
if echo $installer_status | grep -Eq "(inactive|waiting)" > /dev/null; then
echo "Starting dokku-installer"
service dokku-installer start || echo "Unable to start dokku-installer"
fi