From 123a24eb6e718e61e3fe27f976ea0bfa690f7f54 Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Sat, 7 Oct 2023 20:19:29 +0800 Subject: [PATCH] u --- caddy-install.sh | 2 +- docker-install.sh | 2 +- seafile-server-install.sh | 14 ++++---------- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/caddy-install.sh b/caddy-install.sh index c5f19d6..41b0a99 100644 --- a/caddy-install.sh +++ b/caddy-install.sh @@ -7,4 +7,4 @@ sudo apt update sudo apt install caddy echo Certificates will be saved automatically in ~/.local/share/caddy/certificates/acme-v02.api.letsencrypt.org-directory/ -echo Systemctl's caddy config file: /etc/caddy/Caddyfile +echo Config file of caddy started by systemctl : /etc/caddy/Caddyfile diff --git a/docker-install.sh b/docker-install.sh index 2879ab9..3095641 100755 --- a/docker-install.sh +++ b/docker-install.sh @@ -29,7 +29,7 @@ sudo apt-get update sudo apt-get install ca-certificates curl gnupg lsb-release -y sudo apt-get remove docker docker-engine docker.io containerd runc -y -echo Add Docker’s official GPG key ... +echo Add official GPG key ... sudo mkdir -p /etc/apt/keyrings sudo curl -fsSL $GPG_URL | sudo gpg --dearmor -o /etc/apt/keyrings/docker-archive-keyring.gpg diff --git a/seafile-server-install.sh b/seafile-server-install.sh index e635cd0..8b93062 100755 --- a/seafile-server-install.sh +++ b/seafile-server-install.sh @@ -9,11 +9,11 @@ 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 to install, or for default 10.0.1:" +echo "=== Enter to install, or for default 9.0.10:" read -p ">>> " SFVERSION if [ ! "$SFVERSION" ] then - SFVERSION="10.0.1" + SFVERSION="9.0.10" fi echo "=== Enter for seafile installation, or for default to `pwd`:" @@ -31,20 +31,14 @@ sudo wget https://seafile-downloads.oss-cn-shanghai.aliyuncs.com/seafile-server_ 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 ./setup-seafile.sh # to setup seafile with 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 -## changed "127.0.0.1:8000" to "0.0.0.0:8000", otherwise it can only be accessed on the localhost, unless using nginx/apache to proxy # sudo sed -i "s|127.0.0.1|0.0.0.0|g" ../conf/gunicorn.conf.py +## changed "127.0.0.1:8000" to "0.0.0.0:8000", otherwise it can only be accessed on the localhost, unless using nginx/apache to proxy. ## to change seahub port, to edit gunicorn.conf.py, it works although it still promts "Starting seahub at port 8000 ...". ## (Directly `./seahub.sh start ` prompts "Starting seahub at port ..." but it actually doesn't listen on .) sudo ./seahub.sh start # the first run will asks to setup an admin account popd - -# sudo apt install nginx -y -# rm -fr /etc/nginx/sites-enabled/default -# cp /faronear/npm/sysconfig/seafile-nginx-http.conf /faronear/bin-seafile/ -# ln -s /faronear/bin-seafile/seafile-nginx-http.conf /etc/nginx/sites-enabled/ -# service nginx restart