Skip to content

Commit

Permalink
refactor(remove_printcfg.sh): remove unnecessary use of sudo in syste…
Browse files Browse the repository at this point in the history
…mctl command to stop printcfg service
  • Loading branch information
rootiest committed Jun 13, 2023
1 parent 8f1137a commit ecbaac1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/remove_printcfg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ if [ "$1" ]; then
# Exit the script
exit 1
fi
fi
fi

# Stop the printcfg service
sudo systemctl stop $repo.service
systemctl stop $repo.service

# Verify that the printcfg service was stopped
if [ "$(systemctl is-active $repo.service)" = "active" ]; then
Expand Down

0 comments on commit ecbaac1

Please sign in to comment.