mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
deploy script fixes
This commit is contained in:
parent
2130bc297b
commit
323322f339
2 changed files with 3 additions and 4 deletions
|
|
@ -12,7 +12,7 @@ with pkgs.lib;
|
|||
}
|
||||
${concatMapStrings (host: ''
|
||||
echo "deploying ${host.config.networking.hostName}..."
|
||||
${host.config.system.build.deployScript} $1 &
|
||||
${host.config.system.build.deployScript}
|
||||
PID_LIST+=" $!"
|
||||
'') hosts}
|
||||
# FIXME: remove jobs from PIDLIST once they finish
|
||||
|
|
|
|||
|
|
@ -11,14 +11,13 @@ let
|
|||
}
|
||||
cat > ${file.path}
|
||||
chmod ${file.mode} ${file.path}
|
||||
chown ${file.owner}:${file.group} ${file.path}"''
|
||||
chown ${file.owner}:${file.group} ${file.path}"''
|
||||
+ (if file.source != null then ''
|
||||
< ${toString file.source}
|
||||
'' else ''
|
||||
<<${if hasPrefix "__FUCKERY__" file.text then "EOF" else "'EOF'"}
|
||||
${removePrefix "__FUCKERY__" file.text}
|
||||
EOF
|
||||
'')) (attrValues config.secrets.files);
|
||||
EOF'')) (attrValues config.secrets.files);
|
||||
in {
|
||||
options = {
|
||||
deploy = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue