diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2022-08-19 23:05:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-19 11:05:07 -0400 |
commit | 7258a124af3b83b0224600cffc725b07ed399590 (patch) | |
tree | 332ba9ed2fb006c8ac9ed1e6dff5f08b47a8b0d2 | |
parent | 2dd0b88a930806213b619798ee896a0b36caaa76 (diff) | |
download | gitea-7258a124af3b83b0224600cffc725b07ed399590.tar.gz gitea-7258a124af3b83b0224600cffc725b07ed399590.zip |
Fix the mode of custom dir to 0700 in docker-rootless (#20861)
-rwxr-xr-x | docker/rootless/usr/local/bin/docker-setup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/rootless/usr/local/bin/docker-setup.sh b/docker/rootless/usr/local/bin/docker-setup.sh index 47645726c4..feab02a379 100755 --- a/docker/rootless/usr/local/bin/docker-setup.sh +++ b/docker/rootless/usr/local/bin/docker-setup.sh @@ -5,7 +5,7 @@ mkdir -p ${HOME} && chmod 0700 ${HOME} if [ ! -w ${HOME} ]; then echo "${HOME} is not writable"; exit 1; fi # Prepare custom folder -mkdir -p ${GITEA_CUSTOM} && chmod 0500 ${GITEA_CUSTOM} +mkdir -p ${GITEA_CUSTOM} && chmod 0700 ${GITEA_CUSTOM} # Prepare temp folder mkdir -p ${GITEA_TEMP} && chmod 0700 ${GITEA_TEMP} |