fix(ci): guard deploy auto fallback
This commit is contained in:
parent
a010520a94
commit
006c7e041f
2 changed files with 97 additions and 0 deletions
|
|
@ -215,6 +215,7 @@ restart_service() {
|
|||
if command -v systemctl >/dev/null 2>&1 && systemctl --user is-active "$SERVICE_NAME" >/dev/null 2>&1; then
|
||||
run systemctl --user restart "$SERVICE_NAME"
|
||||
else
|
||||
require_container_managed_by_service
|
||||
run "$container_cli" stop "$CONTAINER_NAME"
|
||||
fi
|
||||
;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue