Changed tcmeta key storage to local user instead of system
This commit is contained in:
2024-11-10 05:53:46 +10:00
parent e574826aff
commit 1a77f983ca

View File

@@ -75,7 +75,7 @@ vMenuSettings() {
menuItems=("$menuNumberIndex. Update vargtools")
menuActions=(updateVargtools)
# Check if git key has been given
if ! [ -f /etc/vargtools/tcmeta ]; then
if ! [ -f $user_home/.config/vargtools/tcmeta ]; then
menuNumberIndex=$((menuNumberIndex+1))
menuItems+=("$menuNumberIndex. Set TCMeta Key")
menuActions+=(setTcmetaKey)
@@ -110,6 +110,11 @@ vMenuSystem() {
menuItems+=("$menuNumberIndex. Update / Install Brave Policy ")
menuActions+=(configBrave)
fi
if [ ! -d "$user_home/.config/vargtools/tcmeta" ]; then
menuNumberIndex=$((menuNumberIndex+1))
menuItems+=("$menuNumberIndex. Setup dotfiles ")
menuActions+=(setupDotFiles)
fi
menuItems+=("B. Back ")
menuActions+=(vMenuMain)
menuTitle=" VargTools"
@@ -204,11 +209,15 @@ setTcmetaKey() {
logo
echo [TCMeta] please enter the git key
read -r key
sudo echo $key > /etc/vargtools/tcmeta
echo $key > $user_home/.config/vargtools/tcmeta
echo [TCMeta] Key Applied
return 1
}
setupDotFiles() {
}
installChicago95() {
logo
echo [Chicago95] Installing prereqs