commit by to_remotes 2024-05-03 13:37:55 +0200 from vmdevhw
parent
dd9d93fe48
commit
b908661066
|
|
@ -1,6 +1,10 @@
|
||||||
#!/usr/bin/zsh
|
#!/usr/bin/zsh
|
||||||
WA_REPO=$HOME/wa_repos
|
WA_REPO=$HOME/wa_repos
|
||||||
TASK_PERFORMING=nfs_server_setup
|
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)
|
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() {
|
function perform_lvm_tasks() {
|
||||||
|
|
@ -13,9 +17,6 @@ Choose an option: "
|
||||||
read -r ans
|
read -r ans
|
||||||
case $ans in
|
case $ans in
|
||||||
1)
|
1)
|
||||||
NFSGRP=vgnfs
|
|
||||||
NFSVOL=lvdata
|
|
||||||
PNFS=/$NFSGRP/$NFSVOL
|
|
||||||
sudo lsblk
|
sudo lsblk
|
||||||
echo -n "disk name (eg vdb): "
|
echo -n "disk name (eg vdb): "
|
||||||
read -r DISK_NAME
|
read -r DISK_NAME
|
||||||
|
|
@ -55,6 +56,8 @@ EOF
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
perform_lvm_tasks
|
if [ ! -f $PNFS ]; then
|
||||||
|
perform_lvm_tasks
|
||||||
|
fi
|
||||||
echo "now initializing repos"
|
echo "now initializing repos"
|
||||||
init_repos
|
init_repos
|
||||||
Loading…
Reference in New Issue