From bad64ce7e041fba0fc48e4b2a6f82509090cd456 Mon Sep 17 00:00:00 2001 From: Wojciech Kosior Date: Thu, 4 Jun 2020 13:01:22 +0200 Subject: put connecting to db in separate source file --- install.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'install.sh') diff --git a/install.sh b/install.sh index 821803a..4d94d6b 100755 --- a/install.sh +++ b/install.sh @@ -22,6 +22,9 @@ install -D -m644 db_connection_config.yml "$INSTALL_ROOT"/etc/0tdns/db_connectio # This one would make sense to be executed directly, so it'll go to sbin install -D -m744 src/hourly.py "$INSTALL_ROOT"/usr/sbin/hourly.py +# This one shall be imported from other scripts +install -D -m644 src/ztdns_db_connectivity.py "$INSTALL_ROOT"/usr/lib/python3/dist-packages/ztdns_db_connectivity.py + # This is the script, that will get called by cron install -D -m744 src/hourly.sh "$INSTALL_ROOT"/usr/sbin/hourly.sh -- cgit v1.2.3