mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-18 13:58:25 +00:00
recursively own GITLAB_SHARED_DIR on startup. Fixes #510
This commit is contained in:
parent
5d44415802
commit
d7a2bef3e1
@ -755,7 +755,7 @@ initialize_datadir() {
|
||||
# create shared directory
|
||||
mkdir -p ${GITLAB_SHARED_DIR}/artifacts/tmp/{cache,uploads}
|
||||
chmod u+rwX ${GITLAB_SHARED_DIR}
|
||||
chown ${GITLAB_USER}:${GITLAB_USER} ${GITLAB_SHARED_DIR}
|
||||
chown -R ${GITLAB_USER}:${GITLAB_USER} ${GITLAB_SHARED_DIR}
|
||||
|
||||
# symlink ${GITLAB_INSTALL_DIR}/shared -> ${GITLAB_DATA_DIR}/shared
|
||||
rm -rf ${GITLAB_INSTALL_DIR}/shared
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user