sudo username fix

pull/1/head
bedefaced 9 years ago
parent 9ee32ceaf5
commit cf2fd5efe5
  1. 3
      openvpn/install.sh

@ -119,7 +119,8 @@ do
echo
echo "Created directory $STARTDIR/$LOGIN with necessary files."
chown -R ${USER:=$(/usr/bin/id -run)}:$USER $STARTDIR/$LOGIN/
USERNAME=${SUDO_USER:-$USER}
chown -R $USERNAME:$USERNAME $STARTDIR/$LOGIN/
fi

Loading…
Cancel
Save