chmod and fix
This commit is contained in:
@@ -122,8 +122,9 @@ in {
|
|||||||
setup = {
|
setup = {
|
||||||
trigger = "server";
|
trigger = "server";
|
||||||
script = pkgs.writeShellScript "setup" ''
|
script = pkgs.writeShellScript "setup" ''
|
||||||
export $(sops -d ${config.sops.secrets."ETHERPAD".path} | xargs)
|
export $(cat ${config.sops.secrets."ETHERPAD".path} | xargs)
|
||||||
echo "The API key is $APIKEY" > /opt/APIKEY.txt
|
echo "$APIKEY" > /opt/APIKEY.txt
|
||||||
|
chmod 0444 /opt/APIKEY.txt
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user