Update
moved config update to script
This commit is contained in:
@@ -1,9 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# This will update the repo
|
|
||||||
|
|
||||||
echo "Updating Configs"
|
|
||||||
|
|
||||||
git pull
|
|
||||||
|
|
||||||
echo "Done"
|
|
||||||
14
vargix-os
14
vargix-os
@@ -37,12 +37,12 @@ start () {
|
|||||||
else
|
else
|
||||||
menuItems=(
|
menuItems=(
|
||||||
"1. Perform Rebuild"
|
"1. Perform Rebuild"
|
||||||
"2. Update Build "
|
"2. Update Configs "
|
||||||
"Q. Exit "
|
"Q. Exit "
|
||||||
)
|
)
|
||||||
menuActions=(
|
menuActions=(
|
||||||
doBuild
|
doBuild
|
||||||
updateBuild
|
updateScript
|
||||||
quitApp
|
quitApp
|
||||||
)
|
)
|
||||||
menuTitle=" $hostname was found. Proceed with rebuild?"
|
menuTitle=" $hostname was found. Proceed with rebuild?"
|
||||||
@@ -59,6 +59,8 @@ start () {
|
|||||||
doBuild () {
|
doBuild () {
|
||||||
logo
|
logo
|
||||||
sudo nixos-rebuild switch -I nixos-config=$scriptDIR/$hostname.nix
|
sudo nixos-rebuild switch -I nixos-config=$scriptDIR/$hostname.nix
|
||||||
|
echo Finished .. press any key to continue
|
||||||
|
read -n 1
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -68,6 +70,14 @@ updateBuild () {
|
|||||||
return 0
|
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 () {
|
quitApp () {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user