Created
June 30, 2021 07:50
-
-
Save drio/db1a0edcfc0dde8bca71393d13b18870 to your computer and use it in GitHub Desktop.
prod branch vs master Destiny One
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/script/deploy_consumers.sh b/src/script/deploy_consumers.sh | |
index bab9e1b..ff16686 100755 | |
--- a/src/script/deploy_consumers.sh | |
+++ b/src/script/deploy_consumers.sh | |
@@ -35,19 +35,19 @@ done < <(cat $CONFIG_PATH) | |
# Make the CSV feeds and log folders | |
mkdir -p $BASE_DIR | |
-chown -R d1consumer $BASE_DIR | |
+chown -R zzkafka $BASE_DIR | |
chmod -R 755 $BASE_DIR | |
mkdir -p $LOG_BASE_PATH | |
-chown -R d1consumer $LOG_BASE_PATH | |
+chown -R zzkafka $LOG_BASE_PATH | |
chmod -R 755 $LOG_BASE_PATH | |
mkdir -p $SLATE_CSV_DEST_PATH | |
-chown -R d1consumer $SLATE_CSV_DEST_PATH | |
+chown -R zzkafka $SLATE_CSV_DEST_PATH | |
chmod -R 755 $SLATE_CSV_DEST_PATH | |
mkdir -p $CUMULATIVE_CSV_DEST_PATH | |
-chown -R d1consumer $CUMULATIVE_CSV_DEST_PATH | |
+chown -R zzkafka $CUMULATIVE_CSV_DEST_PATH | |
chmod -R 755 $CUMULATIVE_CSV_DEST_PATH | |
mkdir -p $LOG_REPORT_PATH | |
@@ -63,4 +63,4 @@ mkdir -p $DST_DIR | |
# Copy the code and set ownership | |
cp -r $GIT_LOCAL/* $DST_DIR | |
-chown -R d1consumer $BASE_DIR | |
+chown -R zzkafka $BASE_DIR | |
diff --git a/src/script/deploy_full.sh b/src/script/deploy_full.sh | |
index 8d102ad..813264d 100755 | |
--- a/src/script/deploy_full.sh | |
+++ b/src/script/deploy_full.sh | |
@@ -5,7 +5,7 @@ | |
# Consumers | |
sudo /home/zzkafka/DestinyOneIntegration/src/script/stop_consumers.sh | |
sudo /home/zzkafka/DestinyOneIntegration/src/script/deploy_consumers.sh | |
-sudo runuser -l d1consumer -c '/opt/destiny_one_consumer/consumers/script/start_consumers.sh' | |
+sudo runuser -l zzkafka -c '/opt/destiny_one_consumer/consumers/script/start_consumers.sh' | |
# WS | |
diff --git a/src/script/deploy_producers.sh b/src/script/deploy_producers.sh | |
index 597c162..efc5808 100755 | |
--- a/src/script/deploy_producers.sh | |
+++ b/src/script/deploy_producers.sh | |
@@ -4,7 +4,7 @@ | |
echo "Deploying the producers..." | |
mkdir -p /var/log/destiny_one_producers | |
-chown -R d1consumer /var/log/destiny_one_producers | |
+chown -R zzkafka /var/log/destiny_one_producers | |
chmod -R 755 /var/log/destiny_one_producers | |
echo "Finished deploying the producers" | |
diff --git a/src/script/deploy_ws.sh b/src/script/deploy_ws.sh | |
index 8edc7ae..cc367a8 100755 | |
--- a/src/script/deploy_ws.sh | |
+++ b/src/script/deploy_ws.sh | |
@@ -12,7 +12,7 @@ rm -rf /var/www/html/* | |
# Copy the new code over | |
cp -r $GIT_LOCAL/* /var/www/html/ | |
-chown -R d1apache:apache /var/www/html/ | |
+chown -R apache:apache /var/www/html/ | |
# Determine the config file to use | |
if [ "$D1_DI_ENV" == "TEST" ]; then | |
@@ -33,18 +33,18 @@ done < <(cat $CONFIG_PATH) | |
# Make the logging directory | |
mkdir -p $LOG_BASE_PATH | |
-chown -R d1apache:apache $LOG_BASE_PATH | |
+chown -R apache:apache $LOG_BASE_PATH | |
chmod -R 775 $LOG_BASE_PATH | |
# Make the JSON cache directory | |
mkdir -p $JSON_CACHE_BASE_PATH | |
-chown -R d1apache:apache $JSON_CACHE_BASE_PATH | |
+chown -R apache:apache $JSON_CACHE_BASE_PATH | |
chmod -R 775 $JSON_CACHE_BASE_PATH | |
# Copy over the HTTPd config | |
rm -f /etc/httpd/conf.d/destiny_one.conf | |
cp /home/zzkafka/DestinyOneIntegration/src/script/destiny_one.conf /etc/httpd/conf.d/destiny_one.conf | |
-chown d1apache:apache /etc/httpd/conf.d/destiny_one.conf | |
+chown apache:apache /etc/httpd/conf.d/destiny_one.conf | |
# Restart the web server | |
/usr/sbin/service httpd start | |
diff --git a/src/script/start_consumers.sh b/src/script/start_consumers.sh | |
index 1980702..f239c82 100755 | |
--- a/src/script/start_consumers.sh | |
+++ b/src/script/start_consumers.sh | |
@@ -30,6 +30,7 @@ CONSUMERS=('application cumulative' | |
'id_card_station_events datawarehouse' | |
'incomplete_transaction marketing' | |
'medicat_covid_status datawarehouse' | |
+ 'medicat_covid_status sis' | |
'qualtrics_health_survey datawarehouse' | |
'student cumulative' | |
'student marketing' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment