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:
parent
4d6e84ff5e
commit
ac9237cd9d
2 changed files with 13 additions and 2 deletions
|
@ -135,7 +135,7 @@ fi
|
||||||
if [ "$is_public" -eq 1 ]
|
if [ "$is_public" -eq 1 ]
|
||||||
then
|
then
|
||||||
# unprotected_uris allows SSO credentials to be passed anyway.
|
# unprotected_uris allows SSO credentials to be passed anyway.
|
||||||
ynh_app_setting_set "$app" unprotected_uris "/"
|
ynh_app_setting_set "$app" skipped_uris "/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -84,6 +84,9 @@ path_url=$(ynh_normalize_url_path "$path_url")
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source "$final_path"
|
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
|
# NGINX CONFIGURATION
|
||||||
|
@ -155,7 +158,7 @@ fi
|
||||||
if [ $is_public -eq 1 ]
|
if [ $is_public -eq 1 ]
|
||||||
then
|
then
|
||||||
# unprotected_uris allows SSO credentials to be passed anyway
|
# unprotected_uris allows SSO credentials to be passed anyway
|
||||||
ynh_app_setting_set "$app" unprotected_uris "/"
|
ynh_app_setting_set "$app" skipped_uris "/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -168,6 +171,14 @@ message="Galette need you to finish the update manually.
|
||||||
|
|
||||||
Please open "$domain/$path_url" and finish the upgrade process.
|
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"\`
|
\`chmod -R 500 "$final_path/config"\`
|
||||||
\`rm -rf "$final_path/install"\`
|
\`rm -rf "$final_path/install"\`
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue