updated sp.sh and psp.sh

This commit is contained in:
naturallaw77 2023-07-15 00:13:18 -07:00
parent 706c83afed
commit 7a3c7377a2
2 changed files with 22 additions and 0 deletions

View File

@ -56,6 +56,7 @@ cat <<EOT >> /mnt/etc/nixos/configuration.nix
ranger
fish
pwgen
openssl
];
services.openssh = {

View File

@ -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