1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/baikal_ynh.git synced 2024-09-03 18:16:11 +02:00

Update install

This commit is contained in:
ericgaspar 2022-04-03 10:47:30 +02:00
parent af6dd25e74
commit 30182338dd
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -119,7 +119,7 @@ ynh_add_fpm_config
ynh_script_progression --message="Configuring Baïkal..." --weight=3
ynh_mysql_connect_as --user=$db_user --password="$db_pwd" --database=$db_name \
< "${final_path}/Core/Resources/Db/MySQL/db.sql"
< "$final_path/Core/Resources/Db/MySQL/db.sql"
#=================================================
# CONFIGURE BAIKAL
@ -133,17 +133,7 @@ chown $app: "$final_path/config/baikal.yaml"
chmod 640 "$final_path/config/baikal.yaml"
# Disable installation
touch "${final_path}/Specific/INSTALL_DISABLED"
#=================================================
# SETUP SSOWAT
#=================================================
ynh_script_progression --message="Configuring permissions..." --weight=2
# Allow public access on /
ynh_permission_update --permission="main" --add="visitors"
# But restrain on /admin
ynh_permission_create --permission="admin" --url="/admin" --allowed="all_users"
touch "$final_path/Specific/INSTALL_DISABLED"
#=================================================
# RELOAD NGINX
@ -156,4 +146,4 @@ ynh_systemd_action --service_name=nginx --action=reload
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Installation of Baïkal completed" --last
ynh_script_progression --message="Installation of $app completed" --last