added persistent alfred data file

This commit is contained in:
mortzu 2014-10-01 22:10:26 +02:00
parent ba03655ee8
commit c737d6f1b9
1 changed files with 9 additions and 0 deletions

View File

@ -36,6 +36,12 @@ WORK_DIR="$(dirname $(readlink -nf $0))"
# set safe path
PATH="${WORK_DIR}:/sbin:/usr/sbin:/bin:/usr/bin"
# alfred data file
ALFRED_DATA_FILE='/var/cache/ffhb/alfred.json'
# create alfred data directory
mkdir -p "$(dirname $ALFRED_DATA_FILE)"
# define variable to count loops
declare -i NUM=0
@ -107,3 +113,6 @@ fi
# reload nameserver
rndc reload >/dev/null
# copy alfred file
cp "$TMP_FILE" "$ALFRED_DATA_FILE"