updated light updater

This commit is contained in:
naturallaw77 2023-12-12 14:38:51 -08:00
parent 610f93aa01
commit 05ba7e15e6

View File

@ -2,7 +2,7 @@
PASSWORD=$(zenity --password --title="User Password") PASSWORD=$(zenity --password --title="User Password")
FLATPAK () { HOME () {
if ! echo $PASSWORD | sudo -S flatpak update -y ; then if ! echo $PASSWORD | sudo -S flatpak update -y ; then
zenity --error \ zenity --error \
@ -13,20 +13,6 @@ if ! echo $PASSWORD | sudo -S flatpak update -y ; then
fi fi
}
HOME () {
if ! echo $PASSWORD | sudo -S timeout nixos-rebuild switch --impure ; then
zenity --error \
--width=400 \
--title="Sovran_SystemsOS_Light Updater" \
--text="Could not complete the NixOS update."
exit 1
fi
if ! echo $PASSWORD | cd /etc/nixos && sudo -S nix flake update ; then if ! echo $PASSWORD | cd /etc/nixos && sudo -S nix flake update ; then
zenity --error \ zenity --error \
@ -73,8 +59,6 @@ exit 1
else else
FLATPAK | zenity --progress --no-cancel --auto-close --width=660 --pulsate --text="Updating Flatpaks now."
HOME | zenity --progress --no-cancel --auto-close --width=660 --pulsate --text="Updating Sovran_SystemsOS now. In rare cases, it could take up to 3 hours. Please be patient..." --title="Sovran_SystemsOS_Light Updater" HOME | zenity --progress --no-cancel --auto-close --width=660 --pulsate --text="Updating Sovran_SystemsOS now. In rare cases, it could take up to 3 hours. Please be patient..." --title="Sovran_SystemsOS_Light Updater"
fi fi