This repository has been archived by the owner on Jun 27, 2022. It is now read-only.
forked from cloudfoundry-community/openvpn-bosh-release
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a separate data directory for CCD files
Fixes CCD files being ignored on 3541.x stemcells due to umask changes
- Loading branch information
Showing
4 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
#!/bin/bash | ||
|
||
cd /var/vcap/jobs/openvpn/etc | ||
[ ! -d /var/vcap/data/openvpn-ccd ] || rm -fr /var/vcap/data/openvpn-ccd | ||
|
||
if [ -d ccd ] ; then | ||
rm -fr ccd | ||
fi | ||
mkdir /var/vcap/data/openvpn-ccd | ||
chmod 755 /var/vcap/data/openvpn-ccd | ||
|
||
mkdir ccd | ||
cd /var/vcap/data/openvpn-ccd | ||
|
||
<% p('ccd').each do | ccd | %> | ||
cat > ccd/<%= ccd[0] %> << EOF | ||
cat > "<%= ccd[0] %>" << EOF | ||
<%= ccd[1] %> | ||
EOF | ||
chmod 644 "<%= ccd[0] %>" | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* fix: client config directories cannot be used on stemcells v3541+ |