diff options
author | Wojciech Kosior <kwojtus@protonmail.com> | 2020-05-29 12:17:26 +0200 |
---|---|---|
committer | Wojciech Kosior <kwojtus@protonmail.com> | 2020-05-29 12:17:26 +0200 |
commit | 16cbee3ce18d79b784641eba0dc4b4688a748be7 (patch) | |
tree | efa082d60acf1b3f58a2648b6e060351d1a7d55c | |
parent | 07f86f26e851c1a300af76201fe2234e3c52bfb9 (diff) | |
download | 0tdns-16cbee3ce18d79b784641eba0dc4b4688a748be7.tar.gz 0tdns-16cbee3ce18d79b784641eba0dc4b4688a748be7.zip |
add sample database connection config file
-rw-r--r-- | db_connection_config.yml | 5 | ||||
-rwxr-xr-x | install.sh | 1 | ||||
-rwxr-xr-x | uninstall.sh | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/db_connection_config.yml b/db_connection_config.yml new file mode 100644 index 0000000..a9170ae --- /dev/null +++ b/db_connection_config.yml @@ -0,0 +1,5 @@ +user: postgres
+password: postgres
+host: "127.0.0.1"
+port: "5432"
+database: "ztdns"
\ No newline at end of file @@ -17,6 +17,7 @@ fi 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 +install -D -m644 db_connection_config.yml "$INSTALL_ROOT"/etc/0tdns/db_connection_config.yml # 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 diff --git a/uninstall.sh b/uninstall.sh index 44b9b3b..55e1f3e 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -10,4 +10,5 @@ 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 + rm -r /etc/0tdns fi |