mirror of
https://github.com/samply/bridgehead.git
synced 2026-07-17 05:00:10 +02:00
Don't use wildcard in sudoers to support sudo-rs (#392)
This commit is contained in:
@@ -21,7 +21,6 @@ Cmnd_Alias BRIDGEHEAD${PROJECT^^} = \\
|
|||||||
/bin/systemctl start bridgehead@${PROJECT}.service, \\
|
/bin/systemctl start bridgehead@${PROJECT}.service, \\
|
||||||
/bin/systemctl stop bridgehead@${PROJECT}.service, \\
|
/bin/systemctl stop bridgehead@${PROJECT}.service, \\
|
||||||
/bin/systemctl restart bridgehead@${PROJECT}.service, \\
|
/bin/systemctl restart bridgehead@${PROJECT}.service, \\
|
||||||
/bin/systemctl restart bridgehead@*.service, \\
|
|
||||||
/bin/chown -R bridgehead /etc/bridgehead /srv/docker/bridgehead, \\
|
/bin/chown -R bridgehead /etc/bridgehead /srv/docker/bridgehead, \\
|
||||||
/usr/bin/chown -R bridgehead /etc/bridgehead /srv/docker/bridgehead
|
/usr/bin/chown -R bridgehead /etc/bridgehead /srv/docker/bridgehead
|
||||||
|
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ if [ $git_updated = "true" ] || [ $docker_updated = "true" ]; then
|
|||||||
RES="Updates detected, now restarting bridgehead:\n$CHANGES"
|
RES="Updates detected, now restarting bridgehead:\n$CHANGES"
|
||||||
log "INFO" "$RES"
|
log "INFO" "$RES"
|
||||||
hc_send log "$RES"
|
hc_send log "$RES"
|
||||||
sudo /bin/systemctl restart bridgehead@*.service
|
sudo /bin/systemctl restart bridgehead@${PROJECT}.service
|
||||||
else
|
else
|
||||||
RES="Nothing updated, nothing to restart."
|
RES="Nothing updated, nothing to restart."
|
||||||
log "INFO" "$RES"
|
log "INFO" "$RES"
|
||||||
|
|||||||
Reference in New Issue
Block a user