container-server/setup/cron/constantly/watchtower

15 lines
283 B
Text
Raw Normal View History

#!/bin/sh
BASE_DIR=/srv/watchtower
UPDATE_TRIGGER="$BASE_DIR/update"
SERVER_DIR=/opt/container-server
if [ -f $UPDATE_TRIGGER ]; then
# remove update trigger file
rm $UPDATE_TRIGGER
# trigger watchtower update
cd $SERVER_DIR
task srv:watchtower > /dev/null
fi