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:
parent
e245e07075
commit
a40fb4f373
4 changed files with 7 additions and 7 deletions
|
@ -4,7 +4,6 @@ set timeout 20
|
|||
set cmd [lindex $argv 0]
|
||||
set path [lindex $argv 1]
|
||||
set user [lindex $argv 2]
|
||||
set password [lindex $argv 3]
|
||||
|
||||
spawn $cmd $path
|
||||
|
||||
|
@ -12,9 +11,11 @@ expect "Email address:"
|
|||
send "$user\r";
|
||||
|
||||
expect "Password:"
|
||||
send "$password\r";
|
||||
send {__ADMIN_PASSWORD__};
|
||||
send "\r";
|
||||
|
||||
expect "Retype password:"
|
||||
send "$password\r";
|
||||
send {__ADMIN_PASSWORD__};
|
||||
send "\r";
|
||||
|
||||
interact
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
"email": "josue@tille.ch"
|
||||
},
|
||||
"requirements": {
|
||||
"yunohost": ">= 2.7.2"
|
||||
"yunohost": ">= 2.7.9"
|
||||
},
|
||||
"multi_instance": false,
|
||||
"services": [
|
||||
|
|
|
@ -66,7 +66,8 @@ ynh_add_nginx_config
|
|||
chmod +x ../conf/setup.exp
|
||||
PS1=""
|
||||
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
|
||||
ynh_psql_test_if_first_run
|
||||
|
@ -86,5 +87,4 @@ yunohost app addaccess --users=$admin $app
|
|||
ynh_use_logrotate /var/log/pgadmin
|
||||
|
||||
# RELOAD NGINX
|
||||
systemctl reload nginx
|
||||
systemctl restart uwsgi
|
||||
|
|
|
@ -37,5 +37,4 @@ set_permission
|
|||
ynh_add_nginx_config
|
||||
|
||||
# RELOAD NGINX
|
||||
systemctl reload nginx
|
||||
systemctl reload uwsgi
|
||||
|
|
Loading…
Reference in a new issue