mirror of
https://github.com/YunoHost-Apps/paheko_ynh.git
synced 2024-09-03 19:56:22 +02:00
more readable process upgrade
This commit is contained in:
parent
7ff27b65a1
commit
e58b73096f
1 changed files with 11 additions and 1 deletions
|
@ -30,7 +30,7 @@ if [[ -z "${secret_key:-}" ]]; then
|
|||
fi
|
||||
|
||||
#=================================================
|
||||
# BACKUP SQLITE DATABASE
|
||||
# BACKUP SQLITE DATABASE AND DATAS
|
||||
#=================================================
|
||||
ynh_script_progression --message="Backup of the DB in temporary file...." --weight=5
|
||||
|
||||
|
@ -88,9 +88,19 @@ fi
|
|||
ynh_add_config --template="config.local.php" --destination="$install_dir/config.local.php"
|
||||
ynh_add_config --template="config.local.yunohost.php" --destination="$install_dir/config.local.yunohost.php"
|
||||
|
||||
#=================================================
|
||||
# RESTORE BACKUP SQLITE DATABASE AND DATAS
|
||||
#=================================================
|
||||
ynh_script_progression --message="Restore datas..." --weight=5
|
||||
|
||||
# Sync data directory backup
|
||||
rsync -a $tmp_data_backup/ $install_dir/data/
|
||||
|
||||
#=================================================
|
||||
# FIX PERMISSIONS
|
||||
#=================================================
|
||||
ynh_script_progression --message="Fix permissions..." --weight=2
|
||||
|
||||
# Permissions on files and directories
|
||||
chmod -R o-rwx "$install_dir"
|
||||
chown -R $app:www-data "$install_dir"
|
||||
|
|
Loading…
Add table
Reference in a new issue