diff --git a/scripts/backup b/scripts/backup index 6997b0f..ba41220 100755 --- a/scripts/backup +++ b/scripts/backup @@ -15,6 +15,10 @@ source /usr/share/yunohost/helpers #================================================= ynh_print_info --message="Declaring files to be backed up..." +if [[ ! "$(systemctl status $app)" =~ "Active: inactive (dead)" ]]; 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 + #================================================= # BACKUP THE APP MAIN DIR #=================================================