updated psp.sh

This commit is contained in:
naturallaw77 2023-07-15 09:31:49 -07:00
parent 0bf247825f
commit a68b0cb94e

View File

@ -66,14 +66,14 @@ echo -n $REPLY > /var/lib/domains/sslemail
mkdir /var/lib/nextcloudaddition
cat <<EOT >> /var/lib/nextcloudaddition/nextcloudaddition
'trusted_proxies' =>
array (
0 => '127.0.0.1',
),
'default_locale' => 'en_US',
'default_phone_region' => 'US',
'filelocking.enabled' => true,
'memcache.local' => '\OC\Memcache\APCu',
'trusted_proxies' =>
array (
0 => '127.0.0.1',
),
'default_locale' => 'en_US',
'default_phone_region' => 'US',
'filelocking.enabled' => true,
'memcache.local' => '\OC\Memcache\APCu',
EOT
@ -115,20 +115,20 @@ cat <<EOT >> /var/lib/agenix-secrets/secrets.nix
let
root = "placeholder" ;
root = "placeholder" ;
in
{
"wordpressdb.age".publicKeys = [ root ];
"matrixdb.age".publicKeys = [ root ];
"wordpressdb.age".publicKeys = [ root ];
"matrixdb.age".publicKeys = [ root ];
"nextclouddb.age".publicKeys = [ root ];
"nextclouddb.age".publicKeys = [ root ];
"turn.age".publicKeys = [ root ];
"turn.age".publicKeys = [ root ];
"matrix_reg_secret.age".publicKeys = [ root ];
"matrix_reg_secret.age".publicKeys = [ root ];
}
@ -174,24 +174,24 @@ sed -i 's:\(root =[[:blank:]]*\)\(.*\):\1"\2";:' /var/lib/agenix-secrets/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
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
echo -n $(cat /var/lib/secrets/nextclouddb) | EDITOR='cp /dev/stdin' nix run github:ryantm/agenix -- -e nextclouddb.age -i /root/.ssh/agenix/agenix-secret-keys
echo -n $(cat /var/lib/secrets/nextclouddb) | EDITOR='cp /dev/stdin' nix run github:ryantm/agenix -- -e nextclouddb.age -i /root/.ssh/agenix/agenix-secret-keys
echo -n $(cat /var/lib/secrets/matrixdb) | EDITOR='cp /dev/stdin' nix run github:ryantm/agenix -- -e matrixdb.age -i /root/.ssh/agenix/agenix-secret-keys
echo -n $(cat /var/lib/secrets/matrixdb) | EDITOR='cp /dev/stdin' nix run github:ryantm/agenix -- -e matrixdb.age -i /root/.ssh/agenix/agenix-secret-keys
echo -n $(cat /var/lib/secrets/turn) | EDITOR='cp /dev/stdin' nix run github:ryantm/agenix -- -e turn.age -i /root/.ssh/agenix/agenix-secret-keys
echo -n $(cat /var/lib/secrets/turn) | EDITOR='cp /dev/stdin' nix run github:ryantm/agenix -- -e turn.age -i /root/.ssh/agenix/agenix-secret-keys
echo -n $(cat /var/lib/secrets/matrix_reg_secret) | EDITOR='cp /dev/stdin' nix run github:ryantm/agenix -- -e matrix_reg_secret.age -i /root/.ssh/agenix/agenix-secret-keys
echo -n $(cat /var/lib/secrets/matrix_reg_secret) | EDITOR='cp /dev/stdin' nix run github:ryantm/agenix -- -e matrix_reg_secret.age -i /root/.ssh/agenix/agenix-secret-keys
popd
pushd /etc/nixos
nix flake update
nix flake update
nixos-rebuild switch --impure
nixos-rebuild switch --impure
popd
@ -228,9 +228,9 @@ chmod 770 /var/lib/domains -R
pushd /etc/nixos
nix flake update
nix flake update
nixos-rebuild switch --impure
nixos-rebuild switch --impure
popd
@ -283,6 +283,8 @@ flatpak update
#
mkdir -p /root/.ssh/authorized_keys
sudo -u free ssh-keygen -q -N "gosovransytems" -t ed25519 -f /home/free/.ssh/factory_login
sed -i -e "0,/ssh-ed25519.*/{ s::$(cat /home/free/.ssh/factory_login.pub): }" /root/.ssh/authorized_keys
@ -305,9 +307,9 @@ chmod 770 /run/media/Second_Drive/BTCEcoandBackup/Electrs_Data -R
pushd /etc/nixos
nix flake update
nix flake update
nixos-rebuild switch --impure
nixos-rebuild switch --impure
popd
@ -315,9 +317,9 @@ popd
pushd ~/Downloads
wget https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovran_SystemsOS_Reseter/sovran_systemsOS_reseter_local_installer/sovran_systemsOS_reseter_install.sh
wget https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovran_SystemsOS_Reseter/sovran_systemsOS_reseter_local_installer/sovran_systemsOS_reseter_install.sh
sudo -u free bash sovran_systemsOS_reseter_install.sh
sudo -u free bash sovran_systemsOS_reseter_install.sh
popd
@ -325,9 +327,9 @@ popd
pushd ~/Downloads
wget https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovran_SystemsOS_Updater/sovran_systemsOS_updater_local_installer/sovran_systemsOS_updater_install.sh
wget https://git.sovransystems.com/Sovran_Systems/Software/raw/branch/main/Sovran_SystemsOS_Updater/sovran_systemsOS_updater_local_installer/sovran_systemsOS_updater_install.sh
sudo -u free bash sovran_systemsOS_updater_install.sh
sudo -u free bash sovran_systemsOS_updater_install.sh
popd
@ -344,11 +346,11 @@ echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCQa3DEhx9RUtV0WopfFuL3cjQt2fBzp5wOg/
pushd /home/free/Downloads
wget https://git.sovransystems.com/Sovran_Systems/Sovran_SystemsOS/raw/branch/main/for_new_sovran_pros/Sovran_SystemsOS-Desktop
wget https://git.sovransystems.com/Sovran_Systems/Sovran_SystemsOS/raw/branch/main/for_new_sovran_pros/Sovran_SystemsOS-Desktop
sudo -u free dconf load / < Sovran_SystemsOS-Desktop
sudo -u free dconf load / < Sovran_SystemsOS-Desktop
rm -rf Sovran_SystemsOS-Desktop
rm -rf Sovran_SystemsOS-Desktop
popd