refactor: use service helpers for squid lifecycle
This commit is contained in:
@@ -34,7 +34,7 @@ function update_script() {
|
|||||||
$STD squid -k parse
|
$STD squid -k parse
|
||||||
msg_ok "Validated Squid Configuration"
|
msg_ok "Validated Squid Configuration"
|
||||||
msg_info "Restarting Squid"
|
msg_info "Restarting Squid"
|
||||||
systemctl restart squid
|
safe_service_restart "squid"
|
||||||
msg_ok "Restarted Squid"
|
msg_ok "Restarted Squid"
|
||||||
msg_ok "Updated ${APP}"
|
msg_ok "Updated ${APP}"
|
||||||
msg_ok "Updated successfully!"
|
msg_ok "Updated successfully!"
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ $STD squid -k parse
|
|||||||
msg_ok "Validated Squid Configuration"
|
msg_ok "Validated Squid Configuration"
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
systemctl enable -q --now squid
|
enable_and_start_service "squid"
|
||||||
msg_ok "Started Service"
|
msg_ok "Started Service"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
|
|||||||
Reference in New Issue
Block a user