1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/friendica_ynh.git synced 2024-09-03 18:36:14 +02:00

Update install

This commit is contained in:
Éric Gaspar 2024-08-23 19:25:48 +02:00
parent 375b0a4a1c
commit 8bf8b0aa6d

View file

@ -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