added persistent alfred data file
This commit is contained in:
parent
ba03655ee8
commit
c737d6f1b9
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue