From 83f7bd66e657e3614e3f83b2a1f9a90b921deb99 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Wed, 5 Dec 2018 22:29:01 +0000 Subject: [PATCH] Don't `mv` `preEventHorizon`, copy it. Signed-off-by: Adam Warner --- gravity.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gravity.sh b/gravity.sh index 288fd237..91706c7e 100755 --- a/gravity.sh +++ b/gravity.sh @@ -579,7 +579,7 @@ gravity_ParseBlacklistDomains() { mv "${piholeDir}/${whitelistMatter}" "${piholeDir}/${accretionDisc}" else # There was no whitelist file, so use preEventHorizon instead of whitelistMatter. - mv "${piholeDir}/${preEventHorizon}" "${piholeDir}/${accretionDisc}" + cp "${piholeDir}/${preEventHorizon}" "${piholeDir}/${accretionDisc}" fi # Move the file over as /etc/pihole/gravity.list so dnsmasq can use it