mirror of
https://github.com/YunoHost-Apps/z-push_ynh.git
synced 2024-09-03 18:05:58 +02:00
fix
This commit is contained in:
parent
a5f963ae70
commit
b50e79b9b1
2 changed files with 1 additions and 7 deletions
|
@ -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);
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue