Skip to content
Permalink
Browse files

Run CDT using a ServerRoot directory with an emoji in the name

  • Loading branch information...
m0rgen committed Jun 4, 2015
1 parent ae8e7d7 commit 71242e7b4597b6a60febc447266490549251cf52
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/testserver
@@ -95,7 +95,7 @@ develop > /dev/null;

# Set up sandbox

sandboxdir="/tmp/cdt_server_sandbox"
sandboxdir="/tmp/cdt_server_sandbox💣"

if [ -d "${sandboxdir}" ]; then
rm -rf "${sandboxdir}"
@@ -114,7 +114,7 @@ cp conf/auth/accounts-test.xml "${datadir}/accounts-cdt.xml"

# Modify the plist

python -c "import plistlib; f=plistlib.readPlist('${configdir}/caldavd-cdt.plist'); f['EnableTrashCollection'] = True; f['HTTPPort'] = 18008; f['BindHTTPPorts'] = [18008]; f['SSLPort'] = 18443; f['BindSSLPorts'] = [18443]; f['Notifications']['Services']['AMP']['Port'] = 62312; f['ServerRoot'] = '${sandboxdir}'; f['ConfigRoot'] = 'Config'; f['RunRoot'] = 'Run'; f['ProxyLoadFromFile'] = '${datadir}/proxies-cdt.xml'; f['ResourceService']['params']['xmlFile'] = '${datadir}/resources-cdt.xml'; f['DirectoryService']['params']['xmlFile'] = '${datadir}/accounts-cdt.xml'; f['AugmentService']['params']['xmlFiles'] = ['${datadir}/augments-cdt.xml']; f['Authentication']['Kerberos']['Enabled'] = False; plistlib.writePlist(f, '${configdir}/caldavd-cdt.plist');"
python -c "import os; import plistlib; f=plistlib.readPlist('${configdir}/caldavd-cdt.plist'); f['EnableTrashCollection'] = True; f['HTTPPort'] = 18008; f['BindHTTPPorts'] = [18008]; f['SSLPort'] = 18443; f['BindSSLPorts'] = [18443]; f['Notifications']['Services']['AMP']['Port'] = 62312; f['ServerRoot'] = u'/tmp/cdt_server_sandbox\ud83d\udca3'; f['ConfigRoot'] = 'Config'; f['RunRoot'] = 'Run'; f['ProxyLoadFromFile'] = u'/tmp/cdt_server_sandbox\ud83d\udca3/Data/proxies-cdt.xml'; f['ResourceService']['params']['xmlFile'] = u'/tmp/cdt_server_sandbox\ud83d\udca3/Data/resources-cdt.xml'; f['DirectoryService']['params']['xmlFile'] = u'/tmp/cdt_server_sandbox\ud83d\udca3/Data/accounts-cdt.xml'; f['AugmentService']['params']['xmlFiles'] = [u'/tmp/cdt_server_sandbox\ud83d\udca3/Data/augments-cdt.xml']; f['Authentication']['Kerberos']['Enabled'] = False; plistlib.writePlist(f, '${configdir}/caldavd-cdt.plist');"

# Modify serverinfo to update ports

0 comments on commit 71242e7

Please sign in to comment.
You can’t perform that action at this time.