chmod and fix

This commit is contained in:
soraefir
2026-05-11 00:38:02 +02:00
parent 31addeda66
commit bf1fbea959

View File

@@ -122,8 +122,9 @@ in {
setup = {
trigger = "server";
script = pkgs.writeShellScript "setup" ''
export $(sops -d ${config.sops.secrets."ETHERPAD".path} | xargs)
echo "The API key is $APIKEY" > /opt/APIKEY.txt
export $(cat ${config.sops.secrets."ETHERPAD".path} | xargs)
echo "$APIKEY" > /opt/APIKEY.txt
chmod 0444 /opt/APIKEY.txt
'';
};