mirror of
				https://framagit.org/YunoHost-Apps/gitea_ynh.git
				synced 2025-10-30 05:15:30 +01:00 
			
		
		
		
	Use systemd is-active instead of systemd status
This commit is contained in:
		| @@ -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 | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Josué Tille
					Josué Tille