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

fix previous commit to pass package_check 'install'

This commit is contained in:
Gofannon 2018-05-05 18:46:00 +02:00
parent 998dee9530
commit ef27b91d50
2 changed files with 5 additions and 3 deletions

View file

@ -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.

View file

@ -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