updated Light updater

This commit is contained in:
naturallaw77 2024-03-30 15:50:06 -07:00
parent fbc635d5d5
commit 0aaf850b7b

View File

@ -21,7 +21,7 @@ if grep -w "Permission denied" $file ; then
zenity --error \
--width=500 \
--title="Sovran_SystemsOS_Light_Updater" \
--text="Authentication canceled. Exiting..."
--text="Authentication Canceled. Exiting..."
exit 1
fi
@ -34,20 +34,34 @@ FLAKE () {
time_stamp=$(date +%Y-%m-%d-%T)
if ! ssh root@localhost "cd /etc/nixos && nix flake update &> /home/free/Documents/Updater_App_Logs/{$time_stamp}-Updater_Flake_Log.txt" ; then
ssh root@localhost "cd /etc/nixos && nix flake update &> /home/free/Documents/Updater_App_Logs/{$time_stamp}-Updater_Flake_Log.txt"
}
PANCAKE-FLAKE () {
pushd /home/free/Documents/Updater_App_Logs
file=$(ls -Art | tail -n 1)
if grep -w "nix: error" $file ; then
zenity --error \
--width=1300 \
--title="Sovran_SystemsOS_Light_Updater" \
--text="Could not complete the Flake update. Check the Updater_Flake_Log.txt in your Documents under Updater_App_Logs folder for more details."
exit 1
exit 1
fi
popd
}
PANCAKE-FLAKE () {
SPICE () {
pushd /home/free/Documents/Updater_App_Logs
@ -64,18 +78,16 @@ if ! grep -w "updating" $file ; then
exit 0
fi
popd
}
SPICE () {
else
time_stamp=$(date +%Y-%m-%d-%T)
xterm -T "Sovran_SystemsOS_Light_Updater" -fa 'Noto Mono' -fs 15 -fg white -bg black -e bash -c "ssh root@localhost 'cd /etc/nixos && nixos-rebuild switch --impure 2>&1 | tee /home/free/Documents/Updater_App_Logs/{$time_stamp}-Updater_Log.txt'"
fi
}
TACO () {