summaryrefslogtreecommitdiff
path: root/experiment/scripts/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'experiment/scripts/run.sh')
-rw-r--r--experiment/scripts/run.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/experiment/scripts/run.sh b/experiment/scripts/run.sh
index 11d298b..8ea1adb 100644
--- a/experiment/scripts/run.sh
+++ b/experiment/scripts/run.sh
@@ -28,7 +28,11 @@ elif [[ "${HOSTNAME}" =~ ${DB_HOSTS} ]]; then
PROMTAIL_LOG_PORT=1515
setup_log
enable_logrotate
- exec ~/scripts/database.sh init
+ if grep -q "Red Hat" /proc/version; then
+ exec ~/scripts/database-centos.sh init
+ else
+ exec ~/scripts/database.sh init
+ fi
elif [[ "${HOSTNAME}" =~ ${SHARD_HOSTS} ]]; then
setup_log
enable_logrotate