Skip to content

Commit 42982e6

Browse files
committed
Drop hardcoded /application path
The handling of `.warmupdone` & `beach-cron-hourly.sh` used an hardcoded path instead of whatever `BEACH_APPLICATION_PATH` was set to.
1 parent e9a1578 commit 42982e6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

root-files/opt/flownative/beach-cron/beach-cron.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
while true; do
44
currentMinute=$(date +"%M")
5-
if [ "${currentMinute}" == "15" ] && [[ -f "/application/beach-cron-hourly.sh" ]]; then
6-
mkdir -p /application/Data/Logs/
7-
chmod 775 /application/beach-cron-hourly.sh
8-
/application/beach-cron-hourly.sh >> /application/Data/Logs/BeachCron.log 2>&1
5+
if [ "${currentMinute}" == "15" ] && [[ -f "${BEACH_APPLICATION_PATH}/beach-cron-hourly.sh" ]]; then
6+
mkdir -p ${BEACH_APPLICATION_PATH}/Data/Logs/
7+
chmod 775 ${BEACH_APPLICATION_PATH}/beach-cron-hourly.sh
8+
${BEACH_APPLICATION_PATH}beach-cron-hourly.sh >> ${BEACH_APPLICATION_PATH}/Data/Logs/BeachCron.log 2>&1
99
sleep 10
1010
fi
1111
sleep 55

root-files/opt/flownative/lib/beach.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,5 +363,5 @@ beach_finalize_flow() {
363363
fi
364364

365365
debug "Beach: Writing .warmupdone flag"
366-
touch /application/.warmupdone
366+
touch ${BEACH_APPLICATION_PATH}/.warmupdone
367367
}

0 commit comments

Comments
 (0)