From a5ac6983dafe848a327a8bd9e98bd42841f2d09a Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Tue, 5 Sep 2023 08:11:40 -0700 Subject: [PATCH] update reseter.app --- .../Master_Passwords_Reset_Root.sh | 45 ------------------- 1 file changed, 45 deletions(-) diff --git a/Sovran_SystemsOS_Reseter/Reseter Source Files/Master_Passwords_Reset_Root.sh b/Sovran_SystemsOS_Reseter/Reseter Source Files/Master_Passwords_Reset_Root.sh index 17f02b6..054bbd1 100644 --- a/Sovran_SystemsOS_Reseter/Reseter Source Files/Master_Passwords_Reset_Root.sh +++ b/Sovran_SystemsOS_Reseter/Reseter Source Files/Master_Passwords_Reset_Root.sh @@ -466,56 +466,11 @@ EOF fi - -#### OnlyOffice Key Part 1 #### - - ssh -i /home/free/.ssh/sovranpro_login root@${ID} << 'EOF' - - echo -n $(pwgen -s 33 -1) > /var/lib/secrets/onlyofficejwtSecretFile - -EOF - - if [[ $? != 0 ]]; then - - zenity --error \ - --ellipsize \ - --no-wrap \ - --title="Sovran_SystemsOS_Reseter" \ - --text="Could Not Update OnlyOffice Secret Part 1" - - exit 1 - - fi - - #### NixOS Rebuild Switch #### ssh -i /home/free/.ssh/sovranpro_login root@${ID} 'nixos-rebuild switch --impure' -#### OnlyOffice Key Part 2 #### - - ssh -i /home/free/.ssh/sovranpro_login root@${ID} << 'EOF' - - OF=$(cat /var/lib/secrets/onlyofficejwtSecretFile) - - sudo -u caddy php /var/lib/www/nextcloud/occ config:app:set onlyoffice jwt_secret --value="${OF}" --update-only - -EOF - - if [[ $? != 0 ]]; then - - zenity --error \ - --ellipsize \ - --no-wrap \ - --title="Sovran_SystemsOS_Reseter" \ - --text="Could Not Update OnlyOffice Secret Part 2" - - exit 1 - - fi - - #### FINAL RESETER TAG #### ssh -i /home/free/.ssh/sovranpro_login root@${ID} 'touch /var/lib/beacons/reseter/completed'