From 0bcc2176a2dd77f9878e841c1bdcb0bbd2bcc05b Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Fri, 14 Jul 2023 23:23:32 -0700 Subject: [PATCH] updated sp.sh --- for_new_sovran_pros/sp.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/for_new_sovran_pros/sp.sh b/for_new_sovran_pros/sp.sh index 9579862..3d824dd 100644 --- a/for_new_sovran_pros/sp.sh +++ b/for_new_sovran_pros/sp.sh @@ -108,7 +108,7 @@ nixos-rebuild switch --impure # -mkdir /root/.ssh/agenix/agenix-secret-keys +mkdir /root/.ssh/agenix ssh-keygen -q -N "" -t ed25519 -f /root/.ssh/agenix/agenix-secret-keys @@ -118,14 +118,16 @@ sed -i 's:\(root =[[:blank:]]*\)\(.*\):\1"\2";:' /var/lib/agenix-secrets/secrets # -mkdir /var/lib/secrets/nextclouddb -mkdir /var/lib/secrets/wordpressdb -mkdir /var/lib/secrets/matrixdb -mkdir /var/lib/secrets/turn -mkdir /var/lib/secrets/matrix_reg_secret -mkdir /var/lib/secrets/main -mkdir /var/lib/secrets/onlyofficejwtSecretFile -mkdir /var/lib/secrets/vaultwarden/vaultwarden.env +mkdir /var/lib/secrets + +touch /var/lib/secrets/nextclouddb +touch /var/lib/secrets/wordpressdb +touch /var/lib/secrets/matrixdb +touch /var/lib/secrets/turn +touch /var/lib/secrets/matrix_reg_secret +touch /var/lib/secrets/main +touch /var/lib/secrets/onlyofficejwtSecretFile +touch /var/lib/secrets/vaultwarden/vaultwarden.env echo -n $(pwgen -s 17 -1) > /var/lib/secrets/nextclouddb echo -n $(pwgen -s 17 -1) > /var/lib/secrets/wordpressdb @@ -139,8 +141,6 @@ echo -n ADMIN_TOKEN=$(openssl rand -base64 48 # -mkdir /var/lib/agenix-secrets - pushd /var/lib/agenix-secrets/ echo -n $(cat /var/lib/secrets/wordpressdb) | EDITOR='cp /dev/stdin' nix run github:ryantm/agenix -- -e wordpressdb.age -i /root/.ssh/agenix/agenix-secret-keys