From 7a3c7377a2d00b8ee3a2d60bc6f371c19f26b549 Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Sat, 15 Jul 2023 00:13:18 -0700 Subject: [PATCH] updated sp.sh and psp.sh --- for_new_sovran_pros/psp.sh | 1 + for_new_sovran_pros/sp.sh | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/for_new_sovran_pros/psp.sh b/for_new_sovran_pros/psp.sh index 3bfa75d..b8c947b 100644 --- a/for_new_sovran_pros/psp.sh +++ b/for_new_sovran_pros/psp.sh @@ -56,6 +56,7 @@ cat <> /mnt/etc/nixos/configuration.nix ranger fish pwgen + openssl ]; services.openssh = { diff --git a/for_new_sovran_pros/sp.sh b/for_new_sovran_pros/sp.sh index aa9e670..b1e203b 100644 --- a/for_new_sovran_pros/sp.sh +++ b/for_new_sovran_pros/sp.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +set -o nounset + GREEN="\e[32m" LIGHTBLUE="\e[94m" ENDCOLOR="\e[0m" @@ -135,6 +137,7 @@ EOT # mkdir /var/lib/secrets +mkdir /var/lib/secrets/vaultwarden touch /var/lib/secrets/nextclouddb touch /var/lib/secrets/wordpressdb @@ -171,6 +174,12 @@ pushd /var/lib/agenix-secrets/ popd + if [[ $? != 0 ]]; then + + exit 1 + + fi + # pushd /etc/nixos @@ -181,6 +190,12 @@ pushd /etc/nixos popd + if [[ $? != 0 ]]; then + + exit 1 + + fi + # chown caddy:php /var/lib/domains -R @@ -207,6 +222,12 @@ pushd /etc/nixos popd + if [[ $? != 0 ]]; then + + exit 1 + + fi + # chown root:root /var/lib/secrets/main -R