=== modified file 'config-handler' --- config-handler 2008-06-19 08:33:44 +0000 +++ config-handler 2008-08-11 21:46:43 +0000 @@ -6,7 +6,9 @@ userconfig=$HOME/.ubuntu-vm-builder configfile="" SUDO_USER=${SUDO_USER:-} +SUDO_GID=${SUDO_GID:-} CONFIG_OWNER=${CONFIG_OWNER:-"$SUDO_USER"} +CONFIG_GID=${CONFIG_GID:-"$SUDO_GID"} # Search for a config param for i @@ -53,6 +55,6 @@ else echo "Creating config file $userconfig" cp $baseuserconf $userconfig - test -n "$CONFIG_OWNER" && chown "$CONFIG_OWNER:$CONFIG_OWNER" $userconfig + test -n "$CONFIG_OWNER" && test -n "$CONFIG_GID" && chown "$CONFIG_OWNER:$CONFIG_GID" $userconfig chmod 600 $userconfig fi