1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pgadmin_ynh.git synced 2024-09-03 19:56:38 +02:00

Fix admin password with special shar

This commit is contained in:
Josué Tille 2018-01-30 12:44:58 +01:00
parent e245e07075
commit a40fb4f373
4 changed files with 7 additions and 7 deletions

View file

@ -4,7 +4,6 @@ set timeout 20
set cmd [lindex $argv 0] set cmd [lindex $argv 0]
set path [lindex $argv 1] set path [lindex $argv 1]
set user [lindex $argv 2] set user [lindex $argv 2]
set password [lindex $argv 3]
spawn $cmd $path spawn $cmd $path
@ -12,9 +11,11 @@ expect "Email address:"
send "$user\r"; send "$user\r";
expect "Password:" expect "Password:"
send "$password\r"; send {__ADMIN_PASSWORD__};
send "\r";
expect "Retype password:" expect "Retype password:"
send "$password\r"; send {__ADMIN_PASSWORD__};
send "\r";
interact interact

View file

@ -14,7 +14,7 @@
"email": "josue@tille.ch" "email": "josue@tille.ch"
}, },
"requirements": { "requirements": {
"yunohost": ">= 2.7.2" "yunohost": ">= 2.7.9"
}, },
"multi_instance": false, "multi_instance": false,
"services": [ "services": [

View file

@ -66,7 +66,8 @@ ynh_add_nginx_config
chmod +x ../conf/setup.exp chmod +x ../conf/setup.exp
PS1="" PS1=""
source $final_path/bin/activate source $final_path/bin/activate
../conf/setup.exp "$final_path/bin/python2.7" "$final_path/lib/python2.7/site-packages/pgadmin4/setup.py" "$admin@$domain" "$admin_pwd" ynh_replace_special_string "__ADMIN_PASSWORD__" "$admin_pwd" "../conf/setup.exp"
../conf/setup.exp "$final_path/bin/python2.7" "$final_path/lib/python2.7/site-packages/pgadmin4/setup.py" "$admin@$domain"
# POPULATE THE DATABASE # POPULATE THE DATABASE
ynh_psql_test_if_first_run ynh_psql_test_if_first_run
@ -86,5 +87,4 @@ yunohost app addaccess --users=$admin $app
ynh_use_logrotate /var/log/pgadmin ynh_use_logrotate /var/log/pgadmin
# RELOAD NGINX # RELOAD NGINX
systemctl reload nginx
systemctl restart uwsgi systemctl restart uwsgi

View file

@ -37,5 +37,4 @@ set_permission
ynh_add_nginx_config ynh_add_nginx_config
# RELOAD NGINX # RELOAD NGINX
systemctl reload nginx
systemctl reload uwsgi systemctl reload uwsgi