package update
This commit is contained in:
parent
99e5499c24
commit
c4a5f32596
1 changed files with 6 additions and 4 deletions
|
@ -18,14 +18,16 @@ upgrade_type=$(ynh_check_app_version_changed)
|
|||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
ynh_script_progression --message="upgrade type is: $upgrade_type"
|
||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
then
|
||||
|
||||
# FIXME possibly not the best way, but UPGRADE_APP varible returns UNKNOWN.
|
||||
|
||||
# if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
# then
|
||||
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" --keep="config.php storage/"
|
||||
fi
|
||||
# fi
|
||||
|
||||
chmod -R o-rwx "$install_dir"
|
||||
chown -R $app:www-data "$install_dir"
|
||||
|
|
Loading…
Reference in a new issue