1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/tandoor_ynh.git synced 2024-09-03 20:35:56 +02:00
This commit is contained in:
Éric Gaspar 2024-07-22 14:08:57 +02:00
parent c5619d4398
commit 1dd73b4f84
4 changed files with 1 additions and 18 deletions

View file

@ -51,8 +51,6 @@ ram.runtime = "1500M"
[resources.install_dir]
[resources.data_dir]
[resources.permissions]
main.url = "/"

View file

@ -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
#=================================================

View file

@ -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
#=================================================

View file

@ -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"