1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/xwiki_ynh.git synced 2024-09-03 20:36:11 +02:00

Add warning if service is running while doing the backup

This commit is contained in:
Josué Tille 2023-12-13 01:16:06 +01:00
parent d3bd6cb815
commit 63e0f537ff
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF

View file

@ -15,6 +15,10 @@ source /usr/share/yunohost/helpers
#================================================= #=================================================
ynh_print_info --message="Declaring files to be backed up..." 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 # BACKUP THE APP MAIN DIR
#================================================= #=================================================