mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Call expect explicitly and cleanup script
This commit is contained in:
parent
13a1b1f0b4
commit
a5a02c1402
2 changed files with 3 additions and 7 deletions
|
@ -4,9 +4,8 @@ set timeout 10
|
||||||
set seafile_dir [lindex $argv 0]
|
set seafile_dir [lindex $argv 0]
|
||||||
set server_name [lindex $argv 1]
|
set server_name [lindex $argv 1]
|
||||||
set domain [lindex $argv 2]
|
set domain [lindex $argv 2]
|
||||||
set seafile_data [lindex $argv 3]
|
set fileserver_port [lindex $argv 3]
|
||||||
set fileserver_port [lindex $argv 4]
|
set db_pwd [lindex $argv 4]
|
||||||
set db_pwd [lindex $argv 5]
|
|
||||||
|
|
||||||
spawn $seafile_dir/setup-seafile-mysql.sh
|
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?"
|
expect "What is the ip or domain of the server?"
|
||||||
send "$domain\r";
|
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?"
|
expect "Which port do you want to use for the seafile fileserver?"
|
||||||
send "$fileserver_port\r";
|
send "$fileserver_port\r";
|
||||||
|
|
||||||
|
|
|
@ -104,7 +104,7 @@ ynh_script_progression --message="Configuring application..." --weight=3
|
||||||
# Run install script
|
# Run install script
|
||||||
mv_expect_scripts
|
mv_expect_scripts
|
||||||
chmod +x $final_path/seafile-server-$seafile_version/setup-seafile-mysql.sh
|
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
|
sleep 3
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue