From 28d2ea31d6b797c401f37d6f4cc7689fa40cd21d Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Sat, 15 Jul 2023 01:19:36 -0700 Subject: [PATCH] updated psp.sh --- for_new_sovran_pros/sp.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/for_new_sovran_pros/sp.sh b/for_new_sovran_pros/sp.sh index 4ccd09a..5719130 100644 --- a/for_new_sovran_pros/sp.sh +++ b/for_new_sovran_pros/sp.sh @@ -148,6 +148,7 @@ touch /var/lib/secrets/matrix_reg_secret touch /var/lib/secrets/main touch /var/lib/secrets/onlyofficejwtSecretFile touch /var/lib/secrets/vaultwarden/vaultwarden.env +touch /var/lib/secrets/external_ip echo -n $(pwgen -s 17 -1) > /var/lib/secrets/nextclouddb echo -n $(pwgen -s 17 -1) > /var/lib/secrets/wordpressdb @@ -161,7 +162,7 @@ echo -n ADMIN_TOKEN=$(openssl rand -base64 48 # -mkdir /root/.ssh/agenix +mkdir -p /root/.ssh/agenix ssh-keygen -q -N "" -t ed25519 -f /root/.ssh/agenix/agenix-secret-keys @@ -171,7 +172,7 @@ sed -i 's:\(root =[[:blank:]]*\)\(.*\):\1"\2";:' /var/lib/agenix-secrets/secrets # -pushd /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