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"