diff --git a/manifest.toml b/manifest.toml index aa9c9b8..05b78ba 100644 --- a/manifest.toml +++ b/manifest.toml @@ -51,8 +51,6 @@ ram.runtime = "1500M" [resources.install_dir] - [resources.data_dir] - [resources.permissions] main.url = "/" diff --git a/scripts/backup b/scripts/backup index 34ea8d1..430bdcc 100755 --- a/scripts/backup +++ b/scripts/backup @@ -21,12 +21,6 @@ ynh_print_info --message="Declaring files to be backed up..." ynh_backup --src_path="$install_dir" -#================================================= -# BACKUP THE DATA DIR -#================================================= - -ynh_backup --src_path="$data_dir" --is_big - #================================================= # SYSTEM CONFIGURATION #================================================= diff --git a/scripts/restore b/scripts/restore index e329248..3d43329 100755 --- a/scripts/restore +++ b/scripts/restore @@ -19,15 +19,6 @@ ynh_restore_file --origin_path="$install_dir" chown -R "$app:www-data" "$install_dir" -#================================================= -# RESTORE THE DATA DIRECTORY -#================================================= -ynh_script_progression --message="Restoring the data directory..." --weight=1 - -ynh_restore_file --origin_path="$data_dir" --not_mandatory - -chown -R "$app:www-data" "$data_dir" - #================================================= # RESTORE THE PostgreSQL DATABASE #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 03acc0b..21faa1d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -31,7 +31,7 @@ ynh_exec_warn_less ynh_install_nodejs --nodejs_version="$nodejs_version" ynh_script_progression --message="Upgrading source files..." --weight=1 # Download, check integrity, uncompress and patch the source from app.src -ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep="$install_dir/.env" +ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep=".env mediafiles" chmod 750 "$install_dir" chmod -R o-rwx "$install_dir"