fix script

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

No files matched your search

+3 -3
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"
'';
};