mirror of
https://framagit.org/YunoHost-Apps/gitea_ynh.git
synced 2024-11-24 20:11:35 +01:00
Use systemd is-active instead of systemd status
This commit is contained in:
parent
4bc7114e8f
commit
035adcf134
@ -9,7 +9,7 @@ source ../settings/scripts/_common.sh
|
|||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
|
|
||||||
if [[ ! "$(systemctl status $app.service)" =~ 'Active: inactive (dead)' ]]; then
|
if systemctl is-active $app.service --quiet; then
|
||||||
ynh_print_warn --message="It's hightly recommended to make your backup when the service is stopped. Please stop $app service with this command before to run the backup 'systemctl stop $app.service'"
|
ynh_print_warn --message="It's hightly recommended to make your backup when the service is stopped. Please stop $app service with this command before to run the backup 'systemctl stop $app.service'"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user