podman-peerjs fix systemctl

This commit is contained in:
Gitouche 2021-05-04 22:19:01 +02:00
parent 9a4c34a76e
commit 735c329f00
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ source ${ABSDIR}/vars.sh
ensure_pwd_is_scriptdir
ensure_not_root
if systemctl is-active --quiet service ${service_name}; then
if systemctl --user is-active --quiet service ${service_name}; then
echo Service ${service_name} is already running.
exit 1
fi

View file

@ -7,7 +7,7 @@ source ${ABSDIR}/vars.sh
ensure_pwd_is_scriptdir
ensure_not_root
if ! systemctl is-active --quiet service ${service_name}; then
if ! systemctl --user is-active --quiet service ${service_name}; then
echo Service ${service_name} is already stopped.
exit 1
fi