update updater script
This commit is contained in:
parent
3ba451f1e3
commit
7984ab7b17
@ -13,6 +13,29 @@ fi
|
||||
|
||||
}
|
||||
|
||||
|
||||
CASHU () {
|
||||
|
||||
if ! ssh root@localhost 'cd /etc/nixos && nix flake update && nixos-rebuild switch --impure &> /home/free/Documents/Updater_App_Logs/'$time_stamp'_Updater_Log.txt' ; then
|
||||
|
||||
zenity --error \
|
||||
--width=400 \
|
||||
--title="Sovran_SystemsOS Updater" \
|
||||
--text="Could not complete the Sovran_SystemsOS update."
|
||||
|
||||
exit 1
|
||||
|
||||
else
|
||||
|
||||
exit 1
|
||||
|
||||
fi
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
SPICE () {
|
||||
|
||||
time_stamp=$(date +%Y-%m-%d-%T)
|
||||
@ -82,6 +105,8 @@ else
|
||||
|
||||
FLATPAK | zenity --progress --no-cancel --auto-close --width=460 --pulsate --text="Updating Flatpaks now..." --title="Sovran_SystemsOS Updater"
|
||||
|
||||
CASHU
|
||||
|
||||
SPICE | zenity --progress --no-cancel --auto-close --width=850 --pulsate --text="Updating now. In rare cases, it could take up to 3 hours. Go have some herbal tea and relax while the update is in progress." --title="Sovran_SystemsOS Updater"
|
||||
|
||||
find /home/free/Documents/Updater_App_Logs -name "*.txt" -type f -mtime +5 -delete
|
||||
|
Loading…
Reference in New Issue
Block a user