14 lines
283 B
Bash
Executable file
14 lines
283 B
Bash
Executable file
#!/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
|