update updater script

This commit is contained in:
naturallaw77 2024-03-13 20:01:59 -07:00
parent 883252e1de
commit 66ce759941

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
FLATPAK () { FLATPAK () {
if ! ssh root@localhost flatpak update -y ; then if ! ssh root@localhost 'flatpak update -y' ; then
zenity --error \ zenity --error \
--title="Sovran_SystemsOS Updater" \ --title="Sovran_SystemsOS Updater" \
@ -19,7 +19,7 @@ time_stamp=$(date +%Y-%m-%d-%T)
mkdir -p /home/free/Documents/Updater_App_Logs mkdir -p /home/free/Documents/Updater_App_Logs
if ! ssh root@localhost cd /etc/nixos && nix flake update && nixos-rebuild switch --impure ; then if ! ssh root@localhost 'cd /etc/nixos && nix flake update && nixos-rebuild switch --impure' ; then
zenity --error \ zenity --error \
--width=400 \ --width=400 \