fix
This commit is contained in:
@@ -83,7 +83,7 @@ in {
|
||||
|
||||
runtime = {
|
||||
paths = [{
|
||||
path="${serverCfg.path.config}/etherpad/";
|
||||
path="${serverCfg.path.config.path}/etherpad/";
|
||||
mode = "0444";
|
||||
}];
|
||||
|
||||
@@ -111,7 +111,7 @@ in {
|
||||
cmd = [ "--settings" "/etc/etherpad/settings.json" "--apikey" "/etc/etherpad/APIKEY.txt" ];
|
||||
volumes = [
|
||||
"${settings}:/etc/etherpad/settings.json"
|
||||
"${serverCfg.path.config}/etherpad/APIKEY.txt:/etc/etherpad/APIKEY.txt:ro"
|
||||
"${serverCfg.path.config.path}/etherpad/APIKEY.txt:/etc/etherpad/APIKEY.txt:ro"
|
||||
];
|
||||
};
|
||||
};
|
||||
@@ -121,8 +121,8 @@ in {
|
||||
trigger = "server";
|
||||
envFile = config.sops.secrets."ETHERPAD".path;
|
||||
script = pkgs.writeShellScript "setup" ''
|
||||
echo "$APIKEY" > ${serverCfg.path.config}/etherpad/APIKEY.txt
|
||||
chmod 444 ${serverCfg.path.config}/etherpad/APIKEY.txt
|
||||
echo "$APIKEY" > ${serverCfg.path.config.path}/etherpad/APIKEY.txt
|
||||
chmod 444 ${serverCfg.path.config.path}/etherpad/APIKEY.txt
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user