2013-02-16 15:00:50 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Setup env variables
|
|
|
|
|
2015-03-10 03:19:28 +00:00
|
|
|
SCRIPTSDIR=$TEMPLATE_SCRIPTS
|
|
|
|
if [ ! -d "$SCRIPTSDIR" ]; then
|
|
|
|
echo "Scripts directory $SCRIPTSDIR does not exists"
|
|
|
|
exit 1
|
2013-02-16 15:00:50 +00:00
|
|
|
fi
|
|
|
|
|
2015-03-10 03:19:28 +00:00
|
|
|
if [ -z "$CACHEDIR" ]; then
|
|
|
|
CACHEDIR=cache_$DIST
|
|
|
|
fi
|
2013-02-16 16:17:42 +00:00
|
|
|
|
|
|
|
export SCRIPTSDIR CACHEDIR
|