delindex: use environment variable

This commit is contained in:
Albert S. 2018-01-05 13:52:40 +01:00
bovenliggende ff77d11856
commit cfc8659692

Bestand weergeven

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
TEMPFILE=$(mktemp) TEMPFILE=$(mktemp)
DBFILE="/home/db/easyindex.sqlite" DBFILE="$EASYINDEX_PATH"
function todelete() function todelete()
{ {
echo "DELETE FROM file WHERE path = '$1';" >> /"$TEMPFILE" echo "DELETE FROM file WHERE path = '$1';" >> /"$TEMPFILE"