mirror of
https://github.com/YunoHost-Apps/paheko_ynh.git
synced 2024-09-03 19:56:22 +02:00
Update upgrade
This commit is contained in:
parent
b3081bac7c
commit
9ac23b6e6c
1 changed files with 14 additions and 0 deletions
|
@ -29,6 +29,15 @@ if [[ -z "${secret_key:-}" ]]; then
|
||||||
ynh_app_setting_set --app=$app --key=secret_key --value=$secret_key
|
ynh_app_setting_set --app=$app --key=secret_key --value=$secret_key
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# BACKUP SQLITE DATABASE
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Backup of the DB in temporary file...." --weight=5
|
||||||
|
|
||||||
|
if [ -f "$install_dir/data/association.sqlite" ];then
|
||||||
|
cp -a $install_dir/data/association.sqlite /tmp/
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -76,6 +85,11 @@ fi
|
||||||
ynh_add_config --template="config.local.php" --destination="$install_dir/config.local.php"
|
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"
|
ynh_add_config --template="config.local.yunohost.php" --destination="$install_dir/config.local.yunohost.php"
|
||||||
|
|
||||||
|
# Restore the sqlite DB
|
||||||
|
if [ -f "/tmp/association.sqlite" ];then
|
||||||
|
mv /tmp/association.sqlite $install_dir/data
|
||||||
|
fi
|
||||||
|
|
||||||
# Permissions on files and directories
|
# Permissions on files and directories
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
Loading…
Add table
Reference in a new issue