From 0d4b7e64b8c828092c5d55cbc829905802448c8a Mon Sep 17 00:00:00 2001 From: Andy Chosak Date: Fri, 15 Mar 2024 07:20:54 -0400 Subject: [PATCH] Update deploy fabfile for RHEL8 This command updates the repo fabfile.py for deploys to RHEL8, from the previous RHEL7 configuration. The only change has to do with the location of the crawl database file itself, moving it from /var/tmp to the deploy location in /opt/cfpb/website-indexer. This change is necesssary due to the different volume configuration in our RHEL8 AMI. --- fabfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fabfile.py b/fabfile.py index e5e83d6..60927f2 100644 --- a/fabfile.py +++ b/fabfile.py @@ -26,7 +26,7 @@ SOURCE_ROOT = f"{SOURCE_PARENT}/{SOURCE_DIRNAME}" CRAWL_DIR = "/var/tmp" -CRAWL_DATABASE = f"{CRAWL_DIR}/crawl.sqlite3" +CRAWL_DATABASE = f"{SOURCE_ROOT}/crawl.sqlite3" CRAWL_DATABASE_TMP = f"{CRAWL_DIR}/crawl-new.sqlite3" LOGROTATE_DIR = "/etc/logrotate.d"