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

Change domain in Kanboard configuration

This commit is contained in:
Jimmy Monin 2019-05-08 17:24:49 +02:00
parent 88f4abbf07
commit 4d5f0cb80e

View file

@ -76,6 +76,16 @@ then
ynh_store_file_checksum --file="/etc/nginx/conf.d/$new_domain.d/$app.conf" ynh_store_file_checksum --file="/etc/nginx/conf.d/$new_domain.d/$app.conf"
fi fi
#=================================================
# SPECIFIC MODIFICATIONS
#=================================================
ynh_print_info "Applying Kanboard specific modifications..."
if [ $change_domain -eq 1 ]
then
# Change domain in Kanboard configuration
ynh_replace_string --match_string="'${old_domain}'" --replace_string="'${new_domain}'" --target_file="${final_path}/config.php"
fi
#================================================= #=================================================
# GENERIC FINALISATION # GENERIC FINALISATION
#================================================= #=================================================