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

Prevent weird bug with user/password in URL + fix upgrade

This commit is contained in:
Jean-Baptiste Holcroft 2018-04-12 23:21:43 +02:00
parent 4d6e84ff5e
commit ac9237cd9d
2 changed files with 13 additions and 2 deletions

View file

@ -135,7 +135,7 @@ fi
if [ "$is_public" -eq 1 ]
then
# unprotected_uris allows SSO credentials to be passed anyway.
ynh_app_setting_set "$app" unprotected_uris "/"
ynh_app_setting_set "$app" skipped_uris "/"
fi
#=================================================

View file

@ -84,6 +84,9 @@ path_url=$(ynh_normalize_url_path "$path_url")
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source "$final_path"
mv --force "$final_path"/galette/* "$final_path"/
ynh_secure_remove "$final_path"/tests
chown -R root:root "$final_path"
#=================================================
# NGINX CONFIGURATION
@ -155,7 +158,7 @@ fi
if [ $is_public -eq 1 ]
then
# unprotected_uris allows SSO credentials to be passed anyway
ynh_app_setting_set "$app" unprotected_uris "/"
ynh_app_setting_set "$app" skipped_uris "/"
fi
#=================================================
@ -168,6 +171,14 @@ message="Galette need you to finish the update manually.
Please open "$domain/$path_url" and finish the upgrade process.
You may need database information:
Type: mysql
Host: localhost
Port: 3306
User: "$db_name"
Password: "$db_pwd"
Name: "$db_name"
\`chmod -R 500 "$final_path/config"\`
\`rm -rf "$final_path/install"\`