Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions jobs/jumpbox/templates/bin/watcher
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
exec </dev/null >>/var/vcap/sys/log/jumpbox.log 2>&1
exec </dev/null >>/var/vcap/sys/log/jumpbox/jumpbox.log 2>&1
umask 022

#
Expand Down Expand Up @@ -165,8 +165,8 @@ while true; do
if [[ ${WATCHER_MTIME_NOW} -gt ${WATCHER_MTIME_START} ]]; then
exec ${WATCHER}
fi

if [[ -d ${JUMPBOX_ETC} ]]; then cp -a ${JUMPBOX_ETC}/* /etc/ ; fi
#Ignore on first run becasue that can cause issues when the stemcell changes userids
if [[ -d ${JUMPBOX_ETC} && $FIRSTRUN -eq 0 ]]; then cp -a ${JUMPBOX_ETC}/* /etc/ ; fi

log1 "Setting up jumpbox banner"
if [[ -d /etc/update-motd.d && ! -f /etc/update-motd.d/99-banner ]]; then
Expand Down