Skip to content

Commit 6afe571

Browse files
authored
Merge pull request #12 from brianhlin/SOFTWARE-4423.ensure-subdir-existence
Ensure that new PVCs have the appropriate subdirs (SOFTWARE-4423)
2 parents 6ea6088 + 648c320 commit 6afe571

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

base/etc/osg/image-config.d/20-osg-ce-setup.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,14 @@ echo ">>>>> YOUR CERTIFICATE INFORMATION IS:"
6363
openssl x509 -in $hostcert_path -text
6464
echo "><><><><><><><><><><><><><><><><><><><"
6565

66-
chown -R condor:condor /var/log/condor-ce /var/lib/condor-ce/spool
66+
# Ensure that PVC dirs and subdirs exist and have the proper
67+
# ownership (SOFTWARE-4423)
68+
mkdir -p \
69+
/var/log/condor-ce/ \
70+
/var/lib/condor-ce/execute \
71+
/var/lib/condor-ce/spool/ceview/{metrics,vos}
72+
chown -R condor:condor \
73+
/var/log/condor-ce \
74+
/var/lib/condor-ce/
6775

6876
set +xe

0 commit comments

Comments
 (0)