diff --git a/systemd_units/update.sh b/systemd_units/update.sh index 6a9e880..6c44d0a 100755 --- a/systemd_units/update.sh +++ b/systemd_units/update.sh @@ -15,6 +15,8 @@ for service in "${services[@]}"; do if [ "${1}" ] && [[ "${service}" != "${1}" && "${service}.service" != "${1}" ]]; then continue fi + prettyPrint "Checking root access" + sudo -v || return 1 prettyPrint "Installing ${service}" sudo cp -v "${service}.service" /etc/systemd/system/ sudo systemctl daemon-reload