update updater script
This commit is contained in:
		| @@ -19,7 +19,28 @@ time_stamp=$(date +%Y-%m-%d-%T) | |||||||
|  |  | ||||||
| mkdir -p /home/free/Documents/Updater_App_Logs | mkdir -p /home/free/Documents/Updater_App_Logs | ||||||
|  |  | ||||||
| if ! ssh root@localhost 'cd /etc/nixos && nix flake update && nixos-rebuild switch --impure' ; then | if ! ssh root@localhost 'cd /etc/nixos && nix flake update' ; then | ||||||
|  |  | ||||||
|  | 	zenity --error \ | ||||||
|  | 	--width=400 \ | ||||||
|  | 	--title="Sovran_SystemsOS Updater" \ | ||||||
|  | 	--text="Could not complete the Sovran_SystemsOS flake update." | ||||||
|  |  | ||||||
|  | 	exit 1 | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  | if ! ssh root@localhost 'nixos-rebuild dry-activate --impure' ; then | ||||||
|  |  | ||||||
|  | 	zenity --error \ | ||||||
|  | 	--width=400 \ | ||||||
|  | 	--title="Sovran_SystemsOS Updater" \ | ||||||
|  | 	--text="Could not complete the test Sovran_SystemsOS update." | ||||||
|  |  | ||||||
|  | 	exit 1 | ||||||
|  |  | ||||||
|  |  | ||||||
|  | if ! ssh root@localhost 'nixos-rebuild switch --impure &> /home/free/Documents/Updater_App_Logs/'$time_stamp'_Updater_Log.txt' ; then | ||||||
|  |  | ||||||
| 	zenity --error \ | 	zenity --error \ | ||||||
| 	--width=400 \ | 	--width=400 \ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user