systemd: Fix update script

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
Harsh Shandilya 2019-10-03 00:02:16 +05:30
parent 00463512d6
commit e204901d92
No known key found for this signature in database
GPG key ID: C2E74282C2133D62

View file

@ -18,7 +18,7 @@ for service in "${services[@]}"; do
prettyPrint "Installing ${service}" prettyPrint "Installing ${service}"
sudo cp -v "${service}.service" /etc/systemd/system/ sudo cp -v "${service}.service" /etc/systemd/system/
sudo systemctl daemon-reload sudo systemctl daemon-reload
if [ "${NO_RESTART}" = false ]; then if [ -z "${NO_RESTART}" ]; then
prettyPrint "Restarting ${service}" prettyPrint "Restarting ${service}"
sudo systemctl restart "${service}" sudo systemctl restart "${service}"
if [ ! -f "/etc/systemd/system/multi-user.target.wants/${service}.service" ]; then if [ ! -f "/etc/systemd/system/multi-user.target.wants/${service}.service" ]; then