From c741ffb249e1d6f7884f2c2f757667b3de7eba96 Mon Sep 17 00:00:00 2001 From: Corey Severino Date: Thu, 7 Apr 2022 17:49:01 -0400 Subject: [PATCH] [SRM-9282] Fix for missing directories. --- bin/compile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/bin/compile b/bin/compile index 108d12b..efed496 100644 --- a/bin/compile +++ b/bin/compile @@ -7,10 +7,10 @@ BUILD_DIR=$1 takipi_common_install() { TAKIPI_FILE=takipi-heroku-latest.tar.gz - + TAKIPI_BASE=$1 TAKIPI_HOME="${TAKIPI_BASE}"/.takipi - + curl -s -o $TAKIPI_FILE -L https://s3.amazonaws.com/app-takipi-com/deploy/linux/$TAKIPI_FILE >/dev/null 2>&1 if [ $? -eq 0 ]; then @@ -22,7 +22,9 @@ takipi_common_install() # Unpacking tarball into base dir tar pzxf $TAKIPI_FILE -C "${TAKIPI_BASE}" - mv ${TAKIPI_BASE}/takipi ${TAKIPI_BASE}/.takipi + mkdir -p ${TAKIPI_BASE}/takipi/log + mkdir -p ${TAKIPI_BASE}/takipi/work + mv ${TAKIPI_BASE}/takipi ${TAKIPI_BASE}/.takipi rm -Rf $TAKIPI_FILE >/dev/null 2>&1 # Cleanup @@ -34,7 +36,7 @@ takipi_common_install() else echo 'export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/app/.takipi/lib"' >> $PROFILE_PATH fi - + echo "export JVM_LIB_FILE=/app/.jdk/jre/lib/amd64/server/libjvm.so" >> $PROFILE_PATH echo "export TAKIPI_HOME=/app/.takipi" >> $PROFILE_PATH