From 8bf8b0aa6ddfbbae38e5e97048ab51561594a971 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 23 Aug 2024 19:25:48 +0200 Subject: [PATCH] Update install --- scripts/install | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 03b15d5..b5ab817 100644 --- a/scripts/install +++ b/scripts/install @@ -31,8 +31,16 @@ chmod -R 775 "$install_dir/view/smarty3" chmod -R o-rwx "$install_dir" chown -R "$app:www-data" "$install_dir" +#================================================= +# APP INITIAL CONFIGURATION +#================================================= +ynh_script_progression --message="Adding $app's configuration files..." --weight=1 + ynh_add_config --template="local-sample.config.php" --destination="$install_dir/config/local.config.php" +chmod 600 "$install_dir/config/local.config.php" +chown "$app:$app" "$install_dir/config/local.config.php" + #================================================= # SYSTEM CONFIGURATION #================================================= @@ -43,7 +51,7 @@ ynh_add_fpm_config ynh_add_systemd_config -# Create a dedicated nginx config +# Create a dedicated NGINX config ynh_add_nginx_config yunohost service add "$app" --description="Decentralized Social Network" --log="/var/log/$app/$app.log" @@ -65,7 +73,7 @@ ynh_add_config --template="addon.config.php" --destination="$install_dir/config/ #================================================= # INSTALL FRIENDICA #================================================= -ynh_script_progression --message="Install Friendica..." --weight=1 +ynh_script_progression --message="Installing $app..." --weight=1 pushd "$install_dir" # Import Composer dependencies