diff --git a/restore_owner.sh b/restore_owner.sh index 36b1f77..ef8c71f 100755 --- a/restore_owner.sh +++ b/restore_owner.sh @@ -4,4 +4,10 @@ SCRIPT_FILE=`realpath "$0"` BASE_DIR=`dirname "$SCRIPT_FILE"` DATA_DIR="$BASE_DIR/docker-builder-data" -sudo chown -R `id -un`:`id -gn` $DATA_DIR +CONFIG_FILE="$BASE_DIR/config.sh" +PACKET_BUILD_DIR="$DATA_DIR/build/packet" +if [ -f $CONFIG_FILE ]; then + source $CONFIG_FILE +fi + +sudo chown -R `id -un`:`id -gn` $PACKET_BUILD_DIR