mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
parent
65a13594f6
commit
d8225afdad
3 changed files with 6 additions and 6 deletions
|
@ -7,7 +7,7 @@ set seafile_data [lindex $argv 2]
|
||||||
set fileserver_port [lindex $argv 3]
|
set fileserver_port [lindex $argv 3]
|
||||||
set db_pwd [lindex $argv 4]
|
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"
|
expect "Press ENTER to continue"
|
||||||
send "\r";
|
send "\r";
|
||||||
|
|
|
@ -45,9 +45,9 @@ sudo mkdir -p $final_path/installed
|
||||||
sudo mkdir -p $final_path/logs
|
sudo mkdir -p $final_path/logs
|
||||||
sudo mkdir -p $final_path/seafile-data
|
sudo mkdir -p $final_path/seafile-data
|
||||||
sudo mkdir -p $final_path/seafile-server-$seafile_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 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
|
# Find available ports
|
||||||
findPort 8000
|
findPort 8000
|
||||||
|
|
|
@ -11,9 +11,9 @@ final_path=/var/www/$app
|
||||||
|
|
||||||
# extract new version
|
# extract new version
|
||||||
sudo mkdir -p $final_path/seafile-server-$seafile_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 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
|
# stop seafile server
|
||||||
sudo service seafile-server stop
|
sudo service seafile-server stop
|
||||||
|
@ -115,7 +115,7 @@ sudo rm -r /tmp/seahub_cache
|
||||||
sudo service seafile-server start
|
sudo service seafile-server start
|
||||||
|
|
||||||
# remove old version files
|
# 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
|
sudo rm -f $final_path/seafile-server_$installed_version_$architecture
|
||||||
|
|
||||||
# store new installed version
|
# store new installed version
|
||||||
|
|
Loading…
Reference in a new issue