copy-secrets: check if service is enabled
This commit is contained in:
parent
42a0fd4e65
commit
90772971a8
@ -22,11 +22,15 @@ NIX_PATH=$NIX_PATH:nixos-config=$PWD/modules/$system_name
|
|||||||
NIX_PATH=$NIX_PATH:secrets=$PWD/secrets/$system_name/nix
|
NIX_PATH=$NIX_PATH:secrets=$PWD/secrets/$system_name/nix
|
||||||
export NIX_PATH
|
export NIX_PATH
|
||||||
|
|
||||||
retiolum_secret=$(nixos-query tv.retiolum.privateKeyFile)
|
case $(nixos-query tv.retiolum.enable 2>/dev/null) in true)
|
||||||
retiolum_uid=$(nixos-query users.extraUsers.retiolum-tinc.uid)
|
retiolum_secret=$(nixos-query tv.retiolum.privateKeyFile)
|
||||||
|
retiolum_uid=$(nixos-query users.extraUsers.retiolum-tinc.uid)
|
||||||
|
esac
|
||||||
|
|
||||||
ejabberd_secret=$(nixos-query services.ejabberd-cd.certFile)
|
case $(nixos-query services.ejabberd-cd.enable 2>/dev/null) in true)
|
||||||
ejabberd_uid=$(nixos-query users.extraUsers.ejabberd.uid)
|
ejabberd_secret=$(nixos-query services.ejabberd-cd.certFile)
|
||||||
|
ejabberd_uid=$(nixos-query users.extraUsers.ejabberd.uid)
|
||||||
|
esac
|
||||||
|
|
||||||
(set -x
|
(set -x
|
||||||
rsync \
|
rsync \
|
||||||
|
Loading…
Reference in New Issue
Block a user