1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yourls_ynh.git synced 2024-09-03 20:35:59 +02:00

Update install

This commit is contained in:
ericgaspar 2022-02-26 21:14:01 +01:00
parent 3db23f1dbc
commit aba029036e
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -107,7 +107,7 @@ ynh_add_fpm_config
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
# copy index file
#cp ../conf/index.php $final_path/
cp ../conf/index.php $final_path/
#=================================================
#=================================================
@ -120,29 +120,18 @@ ynh_add_config --template="../conf/config-sample.php" --destination="$final_path
chmod 600 "$final_path/user/config.php"
chown $app:$app "$final_path/user/config.php"
#=================================================
# SETUP SSOWAT
#=================================================
ynh_script_progression --message="Configuring permissions..." --weight=1
# unprotected_uris allows SSO credentials to be passed anyway.
ynh_permission_update --permission="main" --add="visitors"
#=================================================
# SETUP APPLICATION WITH CURL
#=================================================
# # Set the app as temporarily public for curl call
# ynh_script_progression --message="Configuring SSOwat..." --weight=1
# # Making the app public for curl
# ynh_permission_update --permission="main" --add="visitors"
# Set the app as temporarily public for curl call
ynh_script_progression --message="Configuring SSOwat..." --weight=1
# Making the app public for curl
ynh_permission_update --permission="main" --add="visitors"
# # Installation with curl
# ynh_script_progression --message="Finalizing installation..." --weight=1
# ynh_local_curl "admin/install.php" "install=dummy"
# # Remove the public access
# ynh_permission_update --permission="main" --remove="visitors"
# Installation with curl
ynh_script_progression --message="Finalizing installation..." --weight=1
ynh_local_curl "admin/install.php" "install=dummy"
#=================================================
# RELOAD NGINX