1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/z-push_ynh.git synced 2024-09-03 18:05:58 +02:00
This commit is contained in:
Éric Gaspar 2024-08-11 14:05:52 +02:00
parent a5f963ae70
commit b50e79b9b1
2 changed files with 1 additions and 7 deletions

View file

@ -87,7 +87,7 @@
define('LOGBACKEND', 'filelog'); define('LOGBACKEND', 'filelog');
define('LOGFILEDIR', '__LOG_DIR__/'); define('LOGFILEDIR', '/var/log/__APP__/');
define('LOGFILE', LOGFILEDIR . 'autodiscover.log'); define('LOGFILE', LOGFILEDIR . 'autodiscover.log');
define('LOGERRORFILE', LOGFILEDIR . 'autodiscover-error.log'); define('LOGERRORFILE', LOGFILEDIR . 'autodiscover-error.log');
define('LOGLEVEL', LOGLEVEL_ERROR); define('LOGLEVEL', LOGLEVEL_ERROR);

View file

@ -13,16 +13,11 @@ source /usr/share/yunohost/helpers
# CHECK VERSION # CHECK VERSION
#================================================= #=================================================
upgrade_type=$(ynh_check_app_version_changed)
timezone="$(cat /etc/timezone)" timezone="$(cat /etc/timezone)"
#================================================= #=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE # DOWNLOAD, CHECK AND UNPACK SOURCE
#================================================= #=================================================
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..." ynh_script_progression --message="Upgrading source files..."
mkdir "$install_dir/bkp" mkdir "$install_dir/bkp"
@ -50,7 +45,6 @@ then
fi fi
done done
ynh_secure_remove --file="$install_dir/bkp" ynh_secure_remove --file="$install_dir/bkp"
fi
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"