Blame restore_owner.sh

1b5f3d
#!/bin/bash
1b5f3d
e7b20d
OLDDIR=`pwd`
e7b20d
BASE_DIR=$(cd `dirname "$0"`; pwd)
e7b20d
cd "$OLDDIR"
a1747c
DATA_DIR="$BASE_DIR/env-builder-data"
1b5f3d
f300cf
CONFIG_FILE="$BASE_DIR/config.sh"
f300cf
PACKET_BUILD_DIR="$DATA_DIR/build/packet"
f300cf
if [ -f $CONFIG_FILE ]; then
f300cf
	source $CONFIG_FILE
f300cf
fi
f300cf
f300cf
sudo chown -R `id -un`:`id -gn` $PACKET_BUILD_DIR
a1747c
sudo chown -R `id -un`:`id -gn` "$BASE_DIR/env/image"