file move

This commit is contained in:
2023-05-22 21:45:16 -07:00
parent eccb4268e7
commit a1baebdcaf
2 changed files with 0 additions and 0 deletions

View File

@ -0,0 +1,7 @@
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=Sovran_SystemsOS Updater
Exec=/home/free/.Sovran_Systems/localscript_to_remote_updater.sh
Icon=/home/free/.Sovran_Systems/Icon/Sovran_SystemsOS_Updater_Iconv3.svg

View File

@ -1,36 +0,0 @@
#!/usr/bin/env bash
password=$(zenity --password --title="Sovran_SystemsOS Updater")
if [ $? -eq 1 ] ; then
zenity --error \
--text="Update canceled."
exit 1
else
zenity --info \
--ellipsize \
--no-wrap \
--title="Sovran_SystemsOS Updater" \
--text="$( echo -e "$password" | sudo -S rsync -av /home/free/Documents/Sovran\ Systems/My\ NixOS\ Laptop/configuration.nix /etc/nixos/configuration.nix)"
pushd /etc/nixos/
echo -e $password | sudo -S nix flake update
popd
echo -e $password | sudo -S nixos-rebuild switch --impure | zenity --progress --no-cancel --auto-close --pulsate --title="Sovran_SystemsOS Updater"
zenity --info \
--ellipsize \
--no-wrap \
--title="Sovran_SystemsOS Updater" \
--text="Complete! Please Reboot."
fi
exit 0