Skip to content

Commit

Permalink
Emergency Fix: Fix vzvol not choosing correct dir
Browse files Browse the repository at this point in the history
  • Loading branch information
RainbowHackerHorse committed May 30, 2018
1 parent b329822 commit 0bfdf97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/vzvol
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ VOLTYPE=NULL
vzvol_libdir=/usr/local/lib/vzvol/lib
vzvol_gitdir=$( find ./ -name "vzvol" | grep bin | sed 's/.\{10\}$//' )
ZUSER="$(logname)"
ZUSERHOME=$( awk -F ":" '/${ZUSER}/{print $6}' < /etc/passwd )
ZUSERHOME=$( grep "${ZUSER}" /etc/passwd | awk -F ":" '{print $6}' )


if [ ! "$(whoami)" = 'root' ]; then
Expand Down

0 comments on commit 0bfdf97

Please sign in to comment.