aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojciech Kosior <kwojtus@protonmail.com>2020-05-29 12:07:51 +0200
committerWojciech Kosior <kwojtus@protonmail.com>2020-05-29 12:07:51 +0200
commit07f86f26e851c1a300af76201fe2234e3c52bfb9 (patch)
treeea50a46f95f845e11329fd70a1051e05252b6135
parent36920bf7e51f58ca9345516b0ad2a3af2a4307b0 (diff)
download0tdns-07f86f26e851c1a300af76201fe2234e3c52bfb9.tar.gz
0tdns-07f86f26e851c1a300af76201fe2234e3c52bfb9.zip
also install/uninstall python scripts
-rwxr-xr-xinstall.sh7
-rwxr-xr-xuninstall.sh1
2 files changed, 8 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index dcf24fe..f9cde88 100755
--- a/install.sh
+++ b/install.sh
@@ -16,5 +16,12 @@ fi
# they're not to be executed directly by the user
install -D -m744 vpn_wrapper.sh "$INSTALL_ROOT"/var/lib/0tdns/vpn_wrapper.sh
install -D -m744 netns-script "$INSTALL_ROOT"/var/lib/0tdns/netns-script
+install -D -m755 perform_queries.py "$INSTALL_ROOT"/var/lib/0tdns/perform_queries.py
+
+# This one would make sense to be executed directly, so it'll go to sbin
+install -D -m744 hourly.py "$INSTALL_ROOT"/usr/sbin/hourly.py
+
+# This is the script, that will get called by cron
+install -D -m744 hourly.sh "$INSTALL_ROOT"/usr/sbin/hourly.sh
# simillar approach will be used to install other files
diff --git a/uninstall.sh b/uninstall.sh
index 9e19676..44b9b3b 100755
--- a/uninstall.sh
+++ b/uninstall.sh
@@ -9,4 +9,5 @@ userdel 0tdns
if [ "x$1" = "x--delete-files" ]; then
rm -r /var/lib/0tdns/
rm -r /etc/netns/0tdns*
+ rm /usr/sbin/hourly.sh /usr/sbin/hourly.py
fi