We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9339fb commit 15e9148Copy full SHA for 15e9148
bin/configure-auth-service.sh
@@ -914,7 +914,11 @@ function restart_service() {
914
PM2_USER=${SUDO_USER:-${USER}}
915
sudo -u $PM2_USER pm2 delete ecosystem.config.js
916
sudo -u $PM2_USER pm2 save
917
- elif [[ -f /etc/systemd/system/helix-auth.service ]]; then
+ fi
918
+ # Just in case pm2 was installed but not being used to manage the HAS
919
+ # process, also try stopping HAS using systemctl if the service unit is
920
+ # present.
921
+ if [[ -f /etc/systemd/system/helix-auth.service ]]; then
922
sudo systemctl stop helix-auth
923
fi
924
set -e
0 commit comments