commit by to_remotes 2024-05-03 13:37:55 +0200 from vmdevhw
parent
dd9d93fe48
commit
b908661066
|
|
@ -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
|
||||
}
|
||||
perform_lvm_tasks
|
||||
if [ ! -f $PNFS ]; then
|
||||
perform_lvm_tasks
|
||||
fi
|
||||
echo "now initializing repos"
|
||||
init_repos
|
||||
Loading…
Reference in New Issue