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:
parent
998dee9530
commit
ef27b91d50
2 changed files with 5 additions and 3 deletions
|
@ -37,7 +37,7 @@ location __PATH__ {
|
||||||
# See https://forum.cheky.net/information-sur-message-avertissement-securite-t553-p1.html#p2127
|
# See https://forum.cheky.net/information-sur-message-avertissement-securite-t553-p1.html#p2127
|
||||||
location /var {
|
location /var {
|
||||||
deny all;
|
deny all;
|
||||||
return 403
|
#return 403 # Cannot pass 'install' with 'package_check' if this line is present
|
||||||
}
|
}
|
||||||
|
|
||||||
# Include SSOWAT user panel.
|
# Include SSOWAT user panel.
|
||||||
|
|
|
@ -128,9 +128,11 @@ yunohost app ssowatconf
|
||||||
# Reload Nginx
|
# Reload Nginx
|
||||||
systemctl reload nginx
|
systemctl reload nginx
|
||||||
|
|
||||||
# Installation with curl
|
# Get database password
|
||||||
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"
|
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
|
# GENERIC FINALIZATION
|
||||||
|
|
Loading…
Reference in a new issue