m 3 bepasty-server: fix escape

This commit is contained in:
makefu 2015-10-21 09:11:01 +02:00
parent 0696c3ff38
commit 90683369be

View File

@ -104,12 +104,12 @@ let
PrivateTmp = true;
ExecStartPre = pkgs.writeScript "bepasty-server.${name}-init" ''
#!/bin/sh
chmod 755 ${server.workDir}
mkdir -p ${server.dataDir}
chmod 755 "${server.workDir}"
mkdir -p "${server.dataDir}"
cat > ${server.workDir}/bepasty-${name}.conf <<EOF
SITENAME="${name}"
STORAGE_FILESYSTEM_DIRECTORY="${server.dataDir}"
SECRET_KEY="${escapeShellArg server.secretKey}"
SECRET_KEY="${escape server.secretKey}"
DEFAULT_PERMISSIONS="${server.defaultPermissions}"
${server.extraConfig}
EOF