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