aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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