From 7b2328c7e2885558bd50f9eaa04ae5ecb1e8a15b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 17 Jul 2022 17:27:51 +0200 Subject: [PATCH] Fix --- conf/app.ini | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/app.ini b/conf/app.ini index 20dfd71..6c98af0 100644 --- a/conf/app.ini +++ b/conf/app.ini @@ -101,7 +101,7 @@ SSH_PORT = __SSH_PORT__ ;SSH_LISTEN_PORT = %(SSH_PORT)s ;; ;; Root path of SSH directory, default is '~/.ssh', but you have to use '/home/git/.ssh'. -SSH_ROOT_PATH =__DATADIR__/.ssh +;SSH_ROOT_PATH =__DATADIR__/.ssh ;; ;; Gitea will create a authorized_keys file by default when it is not using the internal ssh server ;; If you intend to use the AuthorizedKeysCommand functionality then you should turn this off. diff --git a/scripts/upgrade b/scripts/upgrade index 8d2213a..49c62b8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -145,7 +145,7 @@ chmod +x "$final_path/gitea" ynh_script_progression --message="Adding a configuration file..." --weight=1 ssh_port=$(grep -P "Port\s+\d+" /etc/ssh/sshd_config | grep -P -o "\d+") -ynh_add_config --template="../conf/app.ini" --destination="$final_path/custom/conf/app.ini" +ynh_add_config --template="../conf/app.ini" --destination="$final_path/custom/conf/app.ini" > /dev/null chmod 640 "$final_path/custom/conf/app.ini" chown $app:$app "$final_path/custom/conf/app.ini"