1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/noalyss_ynh.git synced 2024-09-03 19:46:20 +02:00

Update install

This commit is contained in:
ericgaspar 2022-04-14 11:18:38 +02:00
parent b5c955aaf1
commit 3cf93fa067
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -107,40 +107,15 @@ ynh_script_progression --message="Configuring PHP-FPM..." --weight=3
# Create a dedicated PHP-FPM config # Create a dedicated PHP-FPM config
ynh_add_fpm_config --usage=low --footprint=low ynh_add_fpm_config --usage=low --footprint=low
# #=================================================
# # SETUP APPLICATION WITH CURL
# #=================================================
# # Set the app as temporarily public for cURL call
# ynh_permission_update --permission "main" --add "visitors"
# # Reload NGINX
# ynh_systemd_action --service_name=nginx --action=reload
# ynh_script_progression --message="Finalizing installation..." --weight=10
# # Installation with cURL
# installUrl="/install.php?submit"
# ynh_local_curl $installUrl "install=2" "lang=fr_FR.utf8"
# # Remove the `install.php` directory from within the Noalyss installation path.
# # The scripts within this directory should not be accessible on a live Noalyss site
# # or on any installation that is accessible via the Internet.
#ynh_secure_remove "$final_path/html/install.php"
# # Set the user chosen at installation as administrator
# #ynh_mysql_connect_as --user="$db_user" --password="$db_pwd" --database="$db_name" <<< "UPDATE ${db_name}_user_table SET username = '$admin' WHERE id = 1;"
# ================================================= # =================================================
# MODIFY A CONFIG FILE # MODIFY A CONFIG FILE
# ================================================= # =================================================
# ynh_script_progression --message="Modifying $app config file..." ynh_script_progression --message="Modifying $app config file..."
# ynh_add_config --template="../conf/noalyss.conf" --destination="$final_path/include/config.inc.php" ynh_add_config --template="../conf/noalyss.conf" --destination="$final_path/include/config.inc.php"
# chmod 400 "$final_path/include/config.inc.php" chmod 650 "$final_path/include/config.inc.php"
# chown $app:$app "$final_path/include/config.inc.php" chown $app: "$final_path/include/config.inc.php"
#================================================= #=================================================
# SETUP LOGROTATE # SETUP LOGROTATE