File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ VOLTYPE=NULL
11
11
vzvol_libdir=/usr/local/lib/vzvol/lib
12
12
vzvol_gitdir=$( find ./ -name " vzvol" | grep bin | sed ' s/.\{10\}$//' )
13
13
ZUSER=" $( logname) "
14
+ ZUSERHOME=$( awk -F " :" ' /${ZUSER}/{print $6}' < /etc/passwd )
14
15
15
16
16
17
if [ ! " $( whoami) " = ' root' ]; then
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ vzvol_getargz() {
101
101
return 1
102
102
else
103
103
DELETE_ME=" ${2} "
104
- DELETE_VMDK=" ${HOME } /VBoxDisks/${2} .vmdk"
104
+ DELETE_VMDK=" ${ZUSERHOME } /VBoxDisks/${2} .vmdk"
105
105
vzvol_delete || exit 1
106
106
exit
107
107
fi
Original file line number Diff line number Diff line change @@ -39,8 +39,8 @@ vzvol_list_type() {
39
39
else
40
40
zvolfstype=" unknown"
41
41
fi
42
- if [ -f " ${HOME } /VBoxdisks/${purevolname} .vmdk" ]; then
43
- echo " ${vols} VirtualBox ${HOME } /VBoxdisks/${purevolname} .vmdk $purevolused $purevolsize $zvolfstype "
42
+ if [ -f " ${ZUSERHOME } /VBoxdisks/${purevolname} .vmdk" ]; then
43
+ echo " ${vols} VirtualBox ${ZUSERHOME } /VBoxdisks/${purevolname} .vmdk $purevolused $purevolsize $zvolfstype "
44
44
else
45
45
echo " ${vols} RAW none $purevolused $purevolsize $zvolfstype "
46
46
fi
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ zvol_type_virtualbox() {
11
11
errorfunc=' zvol_type_virtualbox'
12
12
zvol_create || return 1
13
13
vmdk_create || return 1
14
- echo " Please use ${HOME } /VBoxdisks/${VOLNAME} .vmdk as your VM Disk"
14
+ echo " Please use ${ZUSERHOME } /VBoxdisks/${VOLNAME} .vmdk as your VM Disk"
15
15
}
16
16
zvol_type_raw () {
17
17
errorfunc=' zvol_type_raw'
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
vmdk_create () {
3
- ZUSERHOME=$( awk -F " :" ' /${ZUSER}/{print $6}' < /etc/passwd )
4
3
errorfunc=' vmdk_create'
5
4
if [ ! -d " ${ZUSERHOME} " /VBoxdisks/ ]; then
6
5
mkdir -p " ${ZUSERHOME} " /VBoxdisks/
You can’t perform that action at this time.
0 commit comments