Restart correct service

This commit is contained in:
Elizabeth Cray 2024-08-06 13:51:18 -04:00
parent df8fdc37cc
commit 05669ea4cd

View File

@ -292,7 +292,8 @@ for svc in ${SERVICES[@]}; do
done done
# Cleanup # Cleanup
$HOME/$PRINTER_NAME/moonraker/scripts/set-policykit-rules.sh $HOME/$PRINTER_NAME/moonraker/scripts/set-policykit-rules.sh -z
sudo systemctl restart $PRINTER_NAME-moonraker.service
echo.BoldCyan "${PRINTER_NAME} is setup with moonraker on port ${NEW_PORT}" echo.BoldCyan "${PRINTER_NAME} is setup with moonraker on port ${NEW_PORT}"
sudo nginx -t sudo nginx -t
if [ ! -f /etc/nginx/sites-enabled/site.conf ]; then if [ ! -f /etc/nginx/sites-enabled/site.conf ]; then