diff --git a/conf/nginx.conf b/conf/nginx.conf index eb4ee9e..baba3e6 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -37,7 +37,7 @@ location __PATH__ { # See https://forum.cheky.net/information-sur-message-avertissement-securite-t553-p1.html#p2127 location /var { deny all; - return 403 + #return 403 # Cannot pass 'install' with 'package_check' if this line is present } # Include SSOWAT user panel. diff --git a/scripts/install b/scripts/install index 4826fc4..47529dd 100644 --- a/scripts/install +++ b/scripts/install @@ -128,9 +128,11 @@ yunohost app ssowatconf # Reload Nginx systemctl reload nginx -# Installation with curl -ynh_local_curl "/index.php?mod=install "password=$password" "confirmPassword=$password" "type=db" "db[host]=localhost" "db[user]=$dbuser" "db[password]=$dbpass" "db[dbname]=$dbname" +# Get database password +db_pwd=$(ynh_app_setting_get $app mysqlpwd) +# Installation with curl +ynh_local_curl "/index.php?mod=install" "password=$password" "confirmPassword=$password" "type=db" "db[host]=localhost" "db[user]=$db_name" "db[password]=$db_pwd" "db[dbname]=$db_name" #================================================= # GENERIC FINALIZATION