From 2c381d726d2c217243165270c317f9cfc372fe9e Mon Sep 17 00:00:00 2001 From: Vishnu Narayanan Date: Tue, 14 Sep 2021 12:59:22 +0530 Subject: [PATCH] chore: Update installation env value for linux script (#3005) --- deployment/setup_18.04.sh | 2 +- deployment/setup_20.04.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment/setup_18.04.sh b/deployment/setup_18.04.sh index 551b08e63..37d63e2c1 100644 --- a/deployment/setup_18.04.sh +++ b/deployment/setup_18.04.sh @@ -63,7 +63,7 @@ sed -i -e '/POSTGRES_HOST/ s/=.*/=localhost/' .env sed -i -e '/POSTGRES_USERNAME/ s/=.*/=chatwoot/' .env sed -i -e "/POSTGRES_PASSWORD/ s/=.*/=$pg_pass/" .env sed -i -e '/RAILS_ENV/ s/=.*/=$RAILS_ENV/' .env -echo -en "\nINSTALLATION_ENV=LINUX_SCRIPT" >> ".env" +echo -en "\nINSTALLATION_ENV=linux_script" >> ".env" RAILS_ENV=production bundle exec rake db:create RAILS_ENV=production bundle exec rake db:reset diff --git a/deployment/setup_20.04.sh b/deployment/setup_20.04.sh index 9ab2352a0..0b7aaecea 100644 --- a/deployment/setup_20.04.sh +++ b/deployment/setup_20.04.sh @@ -70,7 +70,7 @@ sed -i -e '/POSTGRES_HOST/ s/=.*/=localhost/' .env sed -i -e '/POSTGRES_USERNAME/ s/=.*/=chatwoot/' .env sed -i -e "/POSTGRES_PASSWORD/ s/=.*/=$pg_pass/" .env sed -i -e '/RAILS_ENV/ s/=.*/=$RAILS_ENV/' .env -echo -en "\nINSTALLATION_ENV=LINUX_SCRIPT" >> ".env" +echo -en "\nINSTALLATION_ENV=linux_script" >> ".env" RAILS_ENV=production bundle exec rake db:create RAILS_ENV=production bundle exec rake db:reset