1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/umami_ynh.git synced 2024-10-01 13:34:50 +02:00

Properly move files

This commit is contained in:
orhtej2 2023-09-24 13:06:23 +02:00
parent 08e0aa64d7
commit d027513512

View file

@ -45,7 +45,10 @@ if $(ynh_compare_current_package_version --comparison le --version "2.6.2~ynh4")
then
# Purge old root directory's contents
ynh_script_progression --message="Removing old files..." --weight=2
ynh_secure_remove --file="$install_dir"
mkdir "$install_dir/release"
chmod -R o-rwx "$install_dir/release"
chown -R $app:www-data "$install_dir/release"
mv -f $install_dir/* $install_dir/.[!.]* $install_dir/release
fi
if [[ "$upgrade_type" == "UPGRADE_APP" || $(ynh_compare_current_package_version --comparison le --version "2.6.2~ynh4") ]]; then