u
This commit is contained in:
@@ -9,16 +9,22 @@ sudo apt-get install python3 python3-setuptools python3-pip python3-ldap sqlite3
|
||||
## for seafile 9.*:
|
||||
# sudo pip3 install --timeout=3600 django==3.2.* future Pillow pylibmc captcha jinja2 sqlalchemy==1.4.3 psd-tools django-pylibmc django-simple-captcha pycryptodome==3.12.0
|
||||
|
||||
echo "=== Enter <version number> to install, or <leave blank> for default 9.0.10:"
|
||||
read -p ">>> " SFVERSION
|
||||
if [ ! "$SFVERSION" ]
|
||||
then
|
||||
SFVERSION="9.0.10"
|
||||
fi
|
||||
|
||||
|
||||
pushd /faronear
|
||||
sudo mkdir bin-seafile
|
||||
cd bin-seafile
|
||||
sudo wget https://seafile-downloads.oss-cn-shanghai.aliyuncs.com/seafile-server_8.0.8_x86-64.tar.gz
|
||||
## for seafile 9.*: https://seafile-downloads.oss-cn-shanghai.aliyuncs.com/seafile-server_9.0.2_x86-64.tar.gz
|
||||
sudo tar -xzf seafile-server_*
|
||||
cd seafile-server-*
|
||||
sudo ./setup-seafile.sh
|
||||
|
||||
ln -s seafile-server-8.0.8 sea
|
||||
sudo wget https://seafile-downloads.oss-cn-shanghai.aliyuncs.com/seafile-server_$SFVERSION_x86-64.tar.gz
|
||||
sudo tar -xzf seafile-server_$SFVERSION_x86-64.tar.gz
|
||||
ln -s seafile-server-$SFVERSION sea
|
||||
cd sea
|
||||
sudo ./setup-seafile.sh # to setup seafile+sqlite (setup-seafile-mysql.sh is for mysql). this will create ccnet,conf,seafile-data,seahub-data,seahub.db inside the parent folder /faronear/bin-seafile
|
||||
|
||||
sudo ./seafile.sh start
|
||||
|
||||
@@ -26,12 +32,12 @@ sudo ./seafile.sh start
|
||||
# sudo sed -i "s/127\.0\.0\.1/0.0.0.0/g" ../conf/gunicorn.conf.py
|
||||
## to change seahub port, to edit gunicorn.conf.py, it works although it still promts "Starting seahub at port 8000 ...".
|
||||
## (Directly `./seahub.sh start <PORT>` prompts "Starting seahub at port <PORT> ..." but it actually doesn't listen on <PORT>.)
|
||||
sudo ./seahub.sh start
|
||||
sudo ./seahub.sh start # the first run will asks to setup an admin account
|
||||
|
||||
popd
|
||||
|
||||
sudo apt install nginx -y
|
||||
rm /etc/nginx/sites-enabled/default
|
||||
cp /faronear/fon/sysconfig/seafile-nginx-http.conf /faronear/bin-seafile/
|
||||
ln -s /faronear/bin-seafile/seafile-nginx-http.conf /etc/nginx/sites-enabled/
|
||||
service nginx restart
|
||||
# sudo apt install nginx -y
|
||||
# rm -fr /etc/nginx/sites-enabled/default
|
||||
# cp /faronear/fon/sysconfig/seafile-nginx-http.conf /faronear/bin-seafile/
|
||||
# ln -s /faronear/bin-seafile/seafile-nginx-http.conf /etc/nginx/sites-enabled/
|
||||
# service nginx restart
|
||||
|
||||
Reference in New Issue
Block a user