diff --git a/Config/Docker/Installs/gitea.sh b/Config/Docker/Installs/gitea.sh index 0f8d14d..79ee5e0 100644 --- a/Config/Docker/Installs/gitea.sh +++ b/Config/Docker/Installs/gitea.sh @@ -11,6 +11,8 @@ declare port=$2 sudo useradd -m git sudo -u git ssh-keygen -t rsa -b 4096 -C "Gitea Host Key" -f /home/git/.ssh/id_rsa -N "" sudo -u git sh -c 'cat /home/git/.ssh/id_rsa.pub >> /home/git/.ssh/authorized_keys' +sudo -u git sh -c 'chmod a+x /usr/local/bin/gitea' +sudo -u git sh -c 'echo "ssh -p '$(( port+22 ))' -o StrictHostKeyChecking=no git@127.0.0.1 \"SSH_ORIGINAL_COMMAND=\\\"\$SSH_ORIGINAL_COMMAND\\\" \$0 \$@\"" > /usr/local/bin/gitea' declare uid=$( id git | awk -F'[=() ]+' '{print $2}' ) declare gid=$( id git | awk -F'[=() ]+' '{print $5}' ) @@ -60,5 +62,3 @@ EOF chown -R git:git $path sudo docker compose up -d -sudo -u git ssh -p $(( port+22 )) -o StrictHostKeyChecking=no git@127.0.0.1 "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" $0 $@" - diff --git a/Config/Web/nginx/install.sh b/Config/Web/nginx/install.sh index 3ca2c46..82cacbf 100644 --- a/Config/Web/nginx/install.sh +++ b/Config/Web/nginx/install.sh @@ -24,6 +24,7 @@ if [[ $pick == 2 ]]; then else echo "1.nginx(默认)" read -p "请选择:" pick + bash "$(dirname $(dirname $0))/acme/test.sh" bash "$(dirname $(dirname $0))/acme/apply.sh" "nginx" "${domain}" ssl_certificate="${HOME}/.acme.sh/${ssl_domain}_ecc/fullchain.cer" ssl_certificate_key="${HOME}/.acme.sh/${ssl_domain}_ecc/${ssl_domain}.key"