mirror of
https://github.com/haiwen/seafile-server-installer-cn.git
synced 2025-12-26 01:22:52 +00:00
Let user specify the version to install
This commit is contained in:
parent
90f1f175d7
commit
73fb165018
|
|
@ -30,11 +30,17 @@ HOSTNAME=$(hostname -i)
|
|||
FILESERVER_PORT=8082
|
||||
SERVER_PORT=10001
|
||||
SEAFILE_SERVER_PORT=12001
|
||||
SEAFILE_VERSION=4.1.2
|
||||
SEAFILE_VERSION=$1
|
||||
SEAFILE_SERVER_PACKAGE=seafile-server_${SEAFILE_VERSION}_x86-64.tar.gz
|
||||
SEAFILE_SERVER_PACKAGE_URL=http://download-cn.seafile.com/${SEAFILE_SERVER_PACKAGE}
|
||||
TIME_ZONE=Asia/Shanghai
|
||||
|
||||
if [ "$#" -ne 1 ]; then
|
||||
echo "You must specif Seafile version to install"
|
||||
echo "Like: $0 4.1.2"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# -------------------------------------------
|
||||
# Seafile Server Community Edition on Ubuntu Trusty (64bit)
|
||||
# -------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in New Issue