diff --git a/scripts/backup b/scripts/backup index ae55ea1..270e87f 100644 --- a/scripts/backup +++ b/scripts/backup @@ -32,18 +32,19 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path) domain=$(ynh_app_setting_get --app=$app --key=domain) #================================================= -# STANDARD BACKUP STEPS +# DECLARE DATA AND CONF FILES TO BACKUP +#================================================= +ynh_print_info --message="Declaring files to be backed up..." + #================================================= # BACKUP THE APP MAIN DIR #================================================= -ynh_print_info --message="Backing up the main app directory..." ynh_backup --src_path="$final_path" #================================================= # BACKUP THE NGINX CONFIGURATION #================================================= -ynh_print_info --message="Backing up nginx web server configuration..." ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" @@ -52,7 +53,6 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" #================================================= # BACKUP SYSTEMD #================================================= -ynh_print_info --message="Backing up systemd configuration..." ynh_backup --src_path="/etc/systemd/system/$app.service" diff --git a/scripts/install b/scripts/install index f3c712c..bbf98b7 100644 --- a/scripts/install +++ b/scripts/install @@ -164,7 +164,7 @@ chown -R $app: $final_path #================================================= ynh_print_info --message="Integrating service in YunoHost..." -yunohost service add $app --description "$app daemon for Syncthing" +yunohost service add $app --description "$app daemon for Syncthing" --log_type "systemd" #================================================= # START SYSTEMD SERVICE diff --git a/scripts/restore b/scripts/restore index 91a94d2..b4b1afe 100644 --- a/scripts/restore +++ b/scripts/restore @@ -98,7 +98,7 @@ systemctl enable $app.service #================================================= ynh_print_info --message="Integrating service in YunoHost..." -yunohost service add $app --description "$app daemon for Syncthing" +yunohost service add $app --description "$app daemon for Syncthing" --log_type "systemd" #================================================= # START SYSTEMD SERVICE diff --git a/scripts/upgrade b/scripts/upgrade index baf88c5..b2f60a8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -167,6 +167,13 @@ ynh_print_info --message="Upgrading systemd configuration..." # Create a dedicated systemd config ynh_add_systemd_config +#================================================= +# INTEGRATE SERVICE IN YUNOHOST +#================================================= +ynh_print_info --message="Integrating service in YunoHost..." + +yunohost service add $app --description "$app daemon for Syncthing" --log_type "systemd" + #================================================= # GENERIC FINALIZATION #=================================================