Call expect explicitly and cleanup script

This commit is contained in:
Josué Tille 2021-04-24 14:51:11 +02:00
parent 13a1b1f0b4
commit a5a02c1402
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF
2 changed files with 3 additions and 7 deletions

View file

@ -4,9 +4,8 @@ set timeout 10
set seafile_dir [lindex $argv 0]
set server_name [lindex $argv 1]
set domain [lindex $argv 2]
set seafile_data [lindex $argv 3]
set fileserver_port [lindex $argv 4]
set db_pwd [lindex $argv 5]
set fileserver_port [lindex $argv 3]
set db_pwd [lindex $argv 4]
spawn $seafile_dir/setup-seafile-mysql.sh
@ -19,9 +18,6 @@ send "$server_name\r";
expect "What is the ip or domain of the server?"
send "$domain\r";
# expect "Where do you want to put your seafile data?"
# send "$seafile_data\r";
expect "Which port do you want to use for the seafile fileserver?"
send "$fileserver_port\r";

View file

@ -104,7 +104,7 @@ ynh_script_progression --message="Configuring application..." --weight=3
# Run install script
mv_expect_scripts
chmod +x $final_path/seafile-server-$seafile_version/setup-seafile-mysql.sh
$expect_scripts_dir/install.exp "$final_path/seafile-server-$seafile_version" "$server_name" "$domain" "$seafile_data" "$fileserver_port" "$db_pwd"
expect $expect_scripts_dir/install.exp "$final_path/seafile-server-$seafile_version" "$server_name" "$domain" "$fileserver_port" "$db_pwd"
sleep 3