Browse Source

Fix the mode of custom dir to 0700 in docker-rootless (#20861)

pull/20795/head
wxiaoguang 2 months ago committed by GitHub
parent
commit
7258a124af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docker/rootless/usr/local/bin/docker-setup.sh

2
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}

Loading…
Cancel
Save