From 82d7ce6d9da92195a7aeb6a0b64f162318c41686 Mon Sep 17 00:00:00 2001 From: mbugeia Date: Sat, 2 Jan 2016 18:17:44 +0100 Subject: [PATCH] Fix update to 5.0.3 --- conf/install.exp | 2 +- scripts/install | 4 ++-- scripts/upgrade | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/conf/install.exp b/conf/install.exp index e753adc..bcbc98d 100644 --- a/conf/install.exp +++ b/conf/install.exp @@ -7,7 +7,7 @@ set seafile_data [lindex $argv 2] set fileserver_port [lindex $argv 3] set db_pwd [lindex $argv 4] -spawn /var/www/seafile/seafile-server-4.4.3/setup-seafile-mysql.sh +spawn /var/www/seafile/seafile-server-5.0.3/setup-seafile-mysql.sh expect "Press ENTER to continue" send "\r"; diff --git a/scripts/install b/scripts/install index 70af46d..ed4a0f1 100644 --- a/scripts/install +++ b/scripts/install @@ -45,9 +45,9 @@ sudo mkdir -p $final_path/installed sudo mkdir -p $final_path/logs sudo mkdir -p $final_path/seafile-data sudo mkdir -p $final_path/seafile-server-$seafile_version -sudo tar xzf ../sources/'seafile-server_'$seafile_version'_'$architecture'.tar' +sudo tar xzf ../sources/'seafile-server_'$seafile_version'_'$architecture'.tar.gz' sudo mv seafile-server-$seafile_version/* $final_path/seafile-server-$seafile_version -sudo mv ../sources/'seafile-server_'$seafile_version'_'$architecture'.tar' $final_path/installed +sudo mv ../sources/'seafile-server_'$seafile_version'_'$architecture'.tar.gz' $final_path/installed # Find available ports findPort 8000 diff --git a/scripts/upgrade b/scripts/upgrade index b5583a0..928fae5 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -11,9 +11,9 @@ final_path=/var/www/$app # extract new version sudo mkdir -p $final_path/seafile-server-$seafile_version -sudo tar xzf ../sources/'seafile-server_'$seafile_version'_'$architecture'.tar' +sudo tar xzf ../sources/'seafile-server_'$seafile_version'_'$architecture'.tar.gz' sudo mv seafile-server-$seafile_version/* $final_path/seafile-server-$seafile_version -sudo mv ../sources/'seafile-server_'$seafile_version'_'$architecture'.tar' $final_path/installed +sudo mv ../sources/'seafile-server_'$seafile_version'_'$architecture'.tar.gz' $final_path/installed # stop seafile server sudo service seafile-server stop @@ -115,7 +115,7 @@ sudo rm -r /tmp/seahub_cache sudo service seafile-server start # remove old version files -sudo rm -f $final_path/installed/seafile-server_$installed_version_$architecture.tar +sudo rm -f $final_path/installed/seafile-server_$installed_version_$architecture.tar* sudo rm -f $final_path/seafile-server_$installed_version_$architecture # store new installed version