1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/plume_ynh.git synced 2024-09-03 20:15:54 +02:00

test here string to input command

This commit is contained in:
anmol26s 2018-09-19 14:00:05 +05:30
parent fda701dc84
commit 4edc196390

View file

@ -160,57 +160,24 @@ ynh_replace_string "__DB_USER__" "$app" "$final_path/.env"
# Set right permissions # Set right permissions
chown -R $app: $final_path chown -R $app: $final_path
# Try Here string to input
pass="test" pass="test"
name="test" name="test"
email="test@domain.tld" email="test@domain.tld"
admin_pass="test123" admin_pass="test123"
( spawn cd $final_path && cargo run ( cd $final_path && cargo run << EOF
expect "First let's check that you have all the required dependencies. Press Enter to start." $pass
2
send "\r" $domain
$username
expect "Password:" $email
$admin_pass
send "$pass\r" $port
127.0.0.1
expect "Do you prefer a simple setup, or to customize everything? EOF
)
1 - Simple setup
2 - Complete setup"
send "2\r"
expect "What is your instance domain?"
send "$domain\r"
expect "What is your instance name?"
send "$name\r"
expect "What is your username? (default: admin)"
send "$username\r"
expect "What is your email?"
send "$email\r"
expect "What is your password?"
send "$admin_pass\r"
expect "On which port should Plume listen? (default: 7878)"
send "$port\r"
expect "On which address should Plume listen? (default: 0.0.0.0)"
send "127.0.0.1\r"
expect eof )
#================================================= #=================================================
# SETUP SYSTEMD # SETUP SYSTEMD