From 26b8498bdb232cdb990cec90c82e923e0763b1a7 Mon Sep 17 00:00:00 2001 From: Eynix Date: Wed, 20 Feb 2019 16:14:53 +0100 Subject: [PATCH] Create the .ssh dir in the gitea home bugfix: error 500 when trying adding an SSH key to Gitea (https://domain.dom/gitea/user/settings/keys) --- scripts/_common.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/_common.sh b/scripts/_common.sh index 62fac07..598dd1d 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -9,6 +9,7 @@ final_path="/opt/$app" DATADIR="/home/$app" REPO_PATH="$DATADIR/repositories" DATA_PATH="$DATADIR/data" +SSH_PATH="$DATADIR/.ssh" # Detect the system architecture to download the right tarball # NOTE: `uname -m` is more accurate and universal than `arch` @@ -31,6 +32,7 @@ fi create_dir() { mkdir -p "$final_path/data" mkdir -p "$final_path/custom/conf" + mkdir -p "$SSH_PATH" mkdir -p "$REPO_PATH" mkdir -p "$DATA_PATH/avatars" mkdir -p "$DATA_PATH/attachments"