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

Fix erroneous trailing slash and php-fpm backup

This commit is contained in:
tituspijean 2019-09-22 18:13:28 +02:00 committed by GitHub
commit aca4ac9746
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 3 deletions

View file

@ -1,4 +1,4 @@
location ^~ __PATH__/ {
location ^~ __PATH__ {
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;

View file

@ -53,7 +53,7 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#=================================================
ynh_script_progression --message="Backing up php-fpm configuration..." --time --weight=1
ynh_backup --src_path="/etc/php/7.0/fpm/pool.d/$app.conf"
ynh_backup --src_path="/etc/php/${php_version}/fpm/pool.d/$app.conf"
#=================================================
# BACKUP THE MYSQL DATABASE

View file

@ -243,7 +243,6 @@ install_and_activate_extension $app $php_version $final_path $db_name "tituspije
ssowatdomain=$(</etc/yunohost/current_host)
sql_command="INSERT INTO \`settings\` (\`key\`, \`value\`) VALUES ('tituspijean-auth-ssowat.domain', '$ssowatdomain'), ('tituspijean-auth-ssowat.onlyUse', '0');"
ynh_mysql_execute_as_root "$sql_command" $db_name
ynh_print_info "SSOwat extension has been installed."
# Install, activate and set language extensions
case $language in