From c526375b22e352f00a7e18b0c35d50c631d01c32 Mon Sep 17 00:00:00 2001 From: Kurtis Date: Wed, 8 May 2024 20:00:04 +1000 Subject: [PATCH] Update moved config update to script --- update-nix.sh | 9 --------- vargix-os | 14 ++++++++++++-- 2 files changed, 12 insertions(+), 11 deletions(-) delete mode 100755 update-nix.sh diff --git a/update-nix.sh b/update-nix.sh deleted file mode 100755 index 5aec184..0000000 --- a/update-nix.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash - -# This will update the repo - -echo "Updating Configs" - -git pull - -echo "Done" \ No newline at end of file diff --git a/vargix-os b/vargix-os index 2d62309..cf94571 100755 --- a/vargix-os +++ b/vargix-os @@ -37,12 +37,12 @@ start () { else menuItems=( "1. Perform Rebuild" - "2. Update Build " + "2. Update Configs " "Q. Exit " ) menuActions=( doBuild - updateBuild + updateScript quitApp ) menuTitle=" $hostname was found. Proceed with rebuild?" @@ -59,6 +59,8 @@ start () { doBuild () { logo sudo nixos-rebuild switch -I nixos-config=$scriptDIR/$hostname.nix + echo Finished .. press any key to continue + read -n 1 return 0 } @@ -68,6 +70,14 @@ updateBuild () { return 0 } +updateScript () { + git -C $scriptDIR pull + echo Script pulled you may need to restart vargix-os if theres been an update to it + echo .. press any key to continue + read -n 1 + return 0 +} + quitApp () { return 0 }