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:
commit
ca6398469b
3 changed files with 4 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue