mirror of
https://framagit.org/YunoHost-Apps/gitea_ynh.git
synced 2024-11-24 12:01:35 +01:00
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)
This commit is contained in:
parent
94bd56cc13
commit
26b8498bdb
@ -9,6 +9,7 @@ final_path="/opt/$app"
|
|||||||
DATADIR="/home/$app"
|
DATADIR="/home/$app"
|
||||||
REPO_PATH="$DATADIR/repositories"
|
REPO_PATH="$DATADIR/repositories"
|
||||||
DATA_PATH="$DATADIR/data"
|
DATA_PATH="$DATADIR/data"
|
||||||
|
SSH_PATH="$DATADIR/.ssh"
|
||||||
|
|
||||||
# Detect the system architecture to download the right tarball
|
# Detect the system architecture to download the right tarball
|
||||||
# NOTE: `uname -m` is more accurate and universal than `arch`
|
# NOTE: `uname -m` is more accurate and universal than `arch`
|
||||||
@ -31,6 +32,7 @@ fi
|
|||||||
create_dir() {
|
create_dir() {
|
||||||
mkdir -p "$final_path/data"
|
mkdir -p "$final_path/data"
|
||||||
mkdir -p "$final_path/custom/conf"
|
mkdir -p "$final_path/custom/conf"
|
||||||
|
mkdir -p "$SSH_PATH"
|
||||||
mkdir -p "$REPO_PATH"
|
mkdir -p "$REPO_PATH"
|
||||||
mkdir -p "$DATA_PATH/avatars"
|
mkdir -p "$DATA_PATH/avatars"
|
||||||
mkdir -p "$DATA_PATH/attachments"
|
mkdir -p "$DATA_PATH/attachments"
|
||||||
|
Loading…
Reference in New Issue
Block a user