updated updater fix

This commit is contained in:
naturallaw77 2023-12-05 08:36:39 -08:00
parent d3c7f98617
commit b945f03562

View File

@ -15,18 +15,29 @@ if [[ $? -eq 1 ]]; then
else
if ! ssh root@localhost 'flatpak update -y' ; then
zenity --error
exit 1
exit 1
fi
if ! ssh root@localhost 'cd /etc/nixos ; nix flake update ; nixos-rebuild switch --impure' ; then
zenity --error
exit 1
exit 1
fi
fi
zenity --info \
--ellipsize \
--no-wrap \
--width=400 \
--title="Sovran_SystemsOS Updater" \
--text="Yay Complete! Please Reboot When You Are Ready."
exit 0