浏览代码

Really fix connecting via ssh..

dennisro 6 年之前
父节点
当前提交
8ecfae7988
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      data/services/gitea/gitea.sh
  2. 2 2
      data/services/gogs/gogs.sh

+ 2 - 2
data/services/gitea/gitea.sh

@@ -128,7 +128,7 @@ configure() {
 	
 	SERVICE_DOMAIN=${SERVICE_DOMAIN}
 	GITEA_APP_NAME="${GITEA_APP_NAME}"
-	SSH_PORT="${SSH_PORT}"
+	SSH_PORT=${SSH_PORT}
 	
 	GITEA_REGISTER_CONFIRM=${GITEA_REGISTER_CONFIRM}
 	GITEA_MAIL_NOTIFY=${GITEA_MAIL_NOTIFY}
@@ -209,7 +209,7 @@ curl -k \
 &repo_root_path=/data/git/gitea-repositories\
 &run_user=git\
 &domain=${SERVICE_DOMAIN}\
-&ssh_port=22\
+&ssh_port=${SSH_PORT}\
 &http_port=3000\
 &app_url=https://${SERVICE_DOMAIN}\
 &log_root_path=/app/gitea/log\

+ 2 - 2
data/services/gogs/gogs.sh

@@ -128,7 +128,7 @@ configure() {
 	
 	SERVICE_DOMAIN=${SERVICE_DOMAIN}
 	GOGS_APP_NAME="${GOGS_APP_NAME}"
-	SSH_PORT="${SSH_PORT}"
+	SSH_PORT=${SSH_PORT}
 	
 	GOGS_REGISTER_CONFIRM=${GOGS_REGISTER_CONFIRM}
 	GOGS_MAIL_NOTIFY=${GOGS_MAIL_NOTIFY}
@@ -208,7 +208,7 @@ curl -k \
 &repo_root_path=/data/git/gogs-repositories\
 &run_user=git\
 &domain=${SERVICE_DOMAIN}\
-&ssh_port=22\
+&ssh_port=${SSH_PORT}\
 &http_port=3000\
 &app_url=https://${SERVICE_DOMAIN}\
 &log_root_path=/app/gogs/log\