moved config update to script
This commit is contained in:
2024-05-08 20:00:04 +10:00
parent c89c1f2830
commit c526375b22
2 changed files with 12 additions and 11 deletions

View File

@@ -1,9 +0,0 @@
#!/usr/bin/env bash
# This will update the repo
echo "Updating Configs"
git pull
echo "Done"

View File

@@ -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
}