15 lines
283 B
Text
15 lines
283 B
Text
|
#!/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
|