1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/petitesannonces_ynh.git synced 2024-09-03 19:56:31 +02:00
This commit is contained in:
ericgaspar 2022-10-14 21:31:17 +02:00
parent 58f410124a
commit 6c8f9ddd0c
3 changed files with 8 additions and 2 deletions

View file

@ -2,7 +2,7 @@
location __PATH__/ {
# Path to source
alias __FINALPATH__/ ;
alias __FINALPATH__/;
index index.php;

View file

@ -47,6 +47,7 @@ ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url
ynh_script_progression --message="Storing installation settings..." --weight=1
ynh_app_setting_set --app=$app --key=domain --value=$domain
ynh_app_setting_set --app=$app --key=path --value=$path_url
#=================================================
# CREATE A MYSQL DATABASE
@ -108,6 +109,8 @@ chown $app:$app "$final_path/conf/config.php"
#=================================================
# SETUP APPLICATION WITH CURL
#=================================================
# Set the app as temporarily public for curl call
ynh_script_progression --message="Configuring SSOwat..." --weight=1
ynh_permission_update --permission="main" --add="visitors"
@ -122,6 +125,9 @@ ynh_local_curl "/install.php"
# Supprimer install.php
ynh_secure_remove --file=$final_path/install.php
# Remove the public access
ynh_permission_update --permission="main" --remove="visitors"
#=================================================
# SETUP SSOWAT
#=================================================

View file

@ -92,7 +92,7 @@ ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./
#=================================================
# RELOAD NGINX AND PHP-FPM
#=================================================
ynh_script_progression --message="Reloading nginx web server and php-fpm..." --weight=1
ynh_script_progression --message="Reloading NGINX web server and PHP-FPM..." --weight=1
ynh_systemd_action --service_name=php$phpversion-fpm --action=reload
ynh_systemd_action --service_name=nginx --action=reload