Blame restore_owner.sh

1b5f3d
#!/bin/bash
1b5f3d
e7b20d
OLDDIR=`pwd`
e7b20d
BASE_DIR=$(cd `dirname "$0"`; pwd)
e7b20d
cd "$OLDDIR"
1b5f3d
DATA_DIR="$BASE_DIR/docker-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
e71c94
sudo chown -R `id -un`:`id -gn` "$BASE_DIR/docker/image"