fix script

This commit is contained in:
soraefir
2026-05-11 00:54:02 +02:00
parent 468cd34fca
commit 0cd20319fe
2 changed files with 6 additions and 6 deletions

View File

@@ -122,10 +122,10 @@ in {
setup = {
trigger = "server";
script = pkgs.writeShellScript "setup" ''
SH="${pkgs.podman}/bin/podman --events-backend=none exec --env-file ${config.sops.secrets."ETHERPAD".path} etherpad-server"
SH="sudo ${pkgs.podman}/bin/podman --events-backend=none exec --env-file ${config.sops.secrets."ETHERPAD".path} etherpad-server sh -c"
$SH echo "$APIKEY" > /opt/APIKEY.txt
$SH chmod 0444 /opt/APIKEY.txt
$SH "echo \$APIKEY > /opt/APIKEY.txt"
$SH "chmod 0444 /opt/APIKEY.txt"
'';
};