mirror of
https://framagit.org/YunoHost-Apps/gitea_ynh.git
synced 2024-12-22 09:35:06 +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
|
||||
|
||||
|
||||
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'"
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user