mirror of
https://github.com/msfjarvis/server-config
synced 2025-08-14 11:47:01 +05:30
systemd: Fix update script
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
parent
00463512d6
commit
e204901d92
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ for service in "${services[@]}"; do
|
|||
prettyPrint "Installing ${service}"
|
||||
sudo cp -v "${service}.service" /etc/systemd/system/
|
||||
sudo systemctl daemon-reload
|
||||
if [ "${NO_RESTART}" = false ]; then
|
||||
if [ -z "${NO_RESTART}" ]; then
|
||||
prettyPrint "Restarting ${service}"
|
||||
sudo systemctl restart "${service}"
|
||||
if [ ! -f "/etc/systemd/system/multi-user.target.wants/${service}.service" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue