From 70b462209af6b1ff59779cb60e3a700f39df3600 Mon Sep 17 00:00:00 2001 From: Limezy Date: Fri, 23 Feb 2024 10:17:04 +0700 Subject: [PATCH] Update config.php if change URL --- scripts/change_url | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/change_url b/scripts/change_url index 30276c1..050ace5 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -19,6 +19,14 @@ ynh_script_progression --message="Updating NGINX web server configuration..." -- ynh_change_url_nginx_config +#================================================= +# MODIFY CONFIG.PHP +#================================================= + +ynh_add_config --template="../conf/config.php" --destination="$install_dir/config.php" +chmod 400 "$install_dir/config.php" +chown $app:$app "$install_dir/config.php" + #================================================= # END OF SCRIPT #=================================================