|
@@ -23,26 +23,10 @@ ynh_print_info "Loading settings..."
|
|
|
|
|
|
app=$YNH_APP_INSTANCE_NAME
|
|
|
|
|
|
-final_path=$(ynh_app_setting_get $app final_path)
|
|
|
-
|
|
|
-#=================================================
|
|
|
-# CHECK IF THE APP CAN BE RESTORED
|
|
|
-#=================================================
|
|
|
-ynh_print_info "Validating restoration parameters..."
|
|
|
-
|
|
|
-test ! -d $final_path \
|
|
|
- || ynh_die "There is already a directory: $final_path "
|
|
|
-
|
|
|
-#=================================================
|
|
|
-# STANDARD RESTORATION STEPS
|
|
|
-#=================================================
|
|
|
-
|
|
|
#=================================================
|
|
|
# RESTORE THE APP MAIN DIR
|
|
|
#=================================================
|
|
|
-ynh_print_info "Restoring the app main directory..."
|
|
|
-
|
|
|
-ynh_restore_file "$final_path"
|
|
|
+ynh_print_info "Restoring the app filesy..."
|
|
|
|
|
|
ynh_restore_file "/usr/local/bin/$service_name-loadcubefile.sh"
|
|
|
|
|
@@ -64,13 +48,6 @@ ynh_print_info "Recreating the dedicated system user..."
|
|
|
ynh_system_user_create $app
|
|
|
|
|
|
#=================================================
|
|
|
-# RESTORE USER RIGHTS
|
|
|
-#=================================================
|
|
|
-
|
|
|
-# Restore permissions on app files
|
|
|
-chown -R $app: $final_path
|
|
|
-
|
|
|
-#=================================================
|
|
|
# SPECIFIC RESTORATION
|
|
|
#=================================================
|
|
|
# REINSTALL DEPENDENCIES
|