1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mattermost_ynh.git synced 2024-09-03 19:36:29 +02:00

Merge pull request #231 from YunoHost-Apps/data_is_big

scripts: don't backup the large `data` directory before upgrade
This commit is contained in:
Pierre de La Morinerie 2021-03-21 23:19:56 +01:00 committed by GitHub
commit ca6398469b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View file

@ -42,7 +42,7 @@ ynh_backup --src_path="$final_path"
# BACKUP THE APP DATA # BACKUP THE APP DATA
#================================================= #=================================================
ynh_backup --src_path="/home/yunohost.app/$app" ynh_backup --src_path="/home/yunohost.app/$app" --is_big
#================================================= #=================================================
# BACKUP THE NGINX CONFIGURATION # BACKUP THE NGINX CONFIGURATION

View file

@ -58,7 +58,8 @@ ynh_script_progression --message="Removing $app main directory..." --weight=6
# Remove the app directory securely # Remove the app directory securely
ynh_secure_remove --file="$final_path" ynh_secure_remove --file="$final_path"
ynh_secure_remove --file="/home/yunohost.app/$app" # We don't delete this dir as it is marked as is-big
# ynh_secure_remove --file="/home/yunohost.app/$app"
#================================================= #=================================================
# REMOVE NGINX CONFIGURATION # REMOVE NGINX CONFIGURATION

View file

@ -70,7 +70,7 @@ ynh_system_user_create --username=$app
# RESTORE THE APP DATA # RESTORE THE APP DATA
#================================================= #=================================================
ynh_restore_file --origin_path="/home/yunohost.app/$app" ynh_restore_file --origin_path="/home/yunohost.app/$app" --not_mandatory
chown -R $app: "/home/yunohost.app/$app" chown -R $app: "/home/yunohost.app/$app"
#================================================= #=================================================