5
0
Fork 0

commit by to_remotes 2024-05-03 13:37:55 +0200 from vmdevhw

main
Holger Wasem 2024-05-03 13:37:55 +02:00
parent dd9d93fe48
commit b908661066
1 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,10 @@
#!/usr/bin/zsh
WA_REPO=$HOME/wa_repos
TASK_PERFORMING=nfs_server_setup
NFSGRP=vgnfs
NFSVOL=lvdata
PNFS=/$NFSGRP/$NFSVOL
source <(curl -sk https://git.service.wiseadvice.eu/wiseadvice_public_repos/wa_public_init_repo/raw/branch/main/common_lib.sh)
function perform_lvm_tasks() {
@ -13,9 +17,6 @@ Choose an option: "
read -r ans
case $ans in
1)
NFSGRP=vgnfs
NFSVOL=lvdata
PNFS=/$NFSGRP/$NFSVOL
sudo lsblk
echo -n "disk name (eg vdb): "
read -r DISK_NAME
@ -55,6 +56,8 @@ EOF
;;
esac
}
if [ ! -f $PNFS ]; then
perform_lvm_tasks
fi
echo "now initializing repos"
init_repos