added persistent alfred data file
This commit is contained in:
parent
4b18998873
commit
2d0ea3814f
|
@ -36,6 +36,12 @@ WORK_DIR="$(dirname $(readlink -nf $0))"
|
||||||
# set safe path
|
# set safe path
|
||||||
PATH="${WORK_DIR}:/sbin:/usr/sbin:/bin:/usr/bin"
|
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
|
# define variable to count loops
|
||||||
declare -i NUM=0
|
declare -i NUM=0
|
||||||
|
|
||||||
|
@ -107,3 +113,6 @@ fi
|
||||||
|
|
||||||
# reload nameserver
|
# reload nameserver
|
||||||
rndc reload >/dev/null
|
rndc reload >/dev/null
|
||||||
|
|
||||||
|
# copy alfred file
|
||||||
|
cp "$TMP_FILE" "$ALFRED_DATA_FILE"
|
||||||
|
|
Loading…
Reference in New Issue