File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1544,11 +1544,11 @@ initialize_datadir() {
1544
1544
chown ${GITLAB_USER} : ${GITLAB_LFS_OBJECTS_DIR}
1545
1545
1546
1546
# create terraform_state directory
1547
- # TODO : parametarize path and replace with it (e.g. GITLAB_TERRAFORM_STATE_STORAGE_PATH) - see sameersbn/gitlab#2438
1548
- # TODO : wrap with "if [[ _ENABLED == true ]]" condition
1549
- mkdir -p ${GITLAB_SHARED_DIR} /terraform_state
1550
- chmod u+rwX ${GITLAB_SHARED_DIR} /terraform_state
1551
- chown ${GITLAB_USER} : ${GITLAB_SHARED_DIR} /terraform_state
1547
+ if [[ ${GITLAB_TERRAFORM_STATE_ENABLED} == true ]] ; then
1548
+ mkdir -p ${GITLAB_TERRAFORM_STATE_STORAGE_PATH}
1549
+ chmod u+rwX ${GITLAB_TERRAFORM_STATE_STORAGE_PATH}
1550
+ chown ${GITLAB_USER} : ${GITLAB_TERRAFORM_STATE_STORAGE_PATH}
1551
+ fi
1552
1552
1553
1553
# create registry dir
1554
1554
if [[ ${GITLAB_REGISTRY_ENABLED} == true ]]; then
You can’t perform that action at this time.
0 commit comments