test new setup script
This commit is contained in:
@@ -122,9 +122,10 @@ in {
|
|||||||
setup = {
|
setup = {
|
||||||
trigger = "server";
|
trigger = "server";
|
||||||
script = pkgs.writeShellScript "setup" ''
|
script = pkgs.writeShellScript "setup" ''
|
||||||
export $(cat ${config.sops.secrets."ETHERPAD".path} | xargs)
|
SH="${pkgs.podman}/bin/podman --events-backend=none exec --env-file ${config.sops.secrets."ETHERPAD".path} -e DOMAIN=${serverCfg.hostDomain} -u root"
|
||||||
echo "$APIKEY" > /opt/APIKEY.txt
|
|
||||||
chmod 0444 /opt/APIKEY.txt
|
$SH echo "$APIKEY" > /opt/APIKEY.txt
|
||||||
|
$SH chmod 0444 /opt/APIKEY.txt
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user