1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kanboard_ynh.git synced 2024-09-03 19:36:17 +02:00

Update upgrade

This commit is contained in:
ericgaspar 2021-06-08 10:19:18 +02:00
parent 0bddc8ad50
commit 791d1851d4
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -140,7 +140,7 @@ ynh_add_fail2ban_config --logpath="/var/log/nginx/$domain-error.log" --failregex
#=================================================
ynh_script_progression --message="Setuping a cron..."
ynh_add_config --template="../conf/cron_kanboard" --destination="$/etc/cron.d/$app"
ynh_add_config --template="../conf/cron_kanboard" --destination="/etc/cron.d/$app"
chmod 644 "/etc/cron.d/$app"
@ -153,10 +153,10 @@ ynh_script_progression --message="Upgrading SSOwat configuration..." --weight=2
if [ $is_public -eq 1 ]
then
ynh_permission_update --permission="main" --add="visitors"
ynh_replace_string --match_string="define('LDAP_AUTH'.*$" --replace_string="define('LDAP_AUTH', true);" --target_file="$config_php"
ynh_replace_string --match_string="define('HIDE_LOGIN_FORM'.*$" --replace_string="define('HIDE_LOGIN_FORM', false);" --target_file="$config_php"
ynh_replace_string --match_string="define('REMEMBER_ME_AUTH'.*$" --replace_string="define('REMEMBER_ME_AUTH', true);" --target_file="$config_php"
ynh_replace_string --match_string="define('DISABLE_LOGOUT'.*$" --replace_string="define('DISABLE_LOGOUT', false);" --target_file="$config_php"
ynh_replace_string --match_string="define('LDAP_AUTH'.*$" --replace_string="define('LDAP_AUTH', true);" --target_file="$final_path/config.php"
ynh_replace_string --match_string="define('HIDE_LOGIN_FORM'.*$" --replace_string="define('HIDE_LOGIN_FORM', false);" --target_file="$final_path/config.php"
ynh_replace_string --match_string="define('REMEMBER_ME_AUTH'.*$" --replace_string="define('REMEMBER_ME_AUTH', true);" --target_file="$final_path/config.php"
ynh_replace_string --match_string="define('DISABLE_LOGOUT'.*$" --replace_string="define('DISABLE_LOGOUT', false);" --target_file="$final_path/config.php"
else
ynh_app_setting_set --app=$app --key=unprotected_uris --value="/jsonrpc.php"
fi