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