mirror of
https://github.com/recklessop/zroc.git
synced 2026-07-03 05:23:13 -04:00
16 lines
393 B
Bash
16 lines
393 B
Bash
#!/bin/bash
|
|
|
|
# change to the zroc directory
|
|
cd /home/zroc/zroc
|
|
|
|
# pull any updates from the git repository
|
|
git pull
|
|
|
|
# check if there are any changes
|
|
if [[ $(git diff HEAD@{1} HEAD) ]]; then
|
|
# if getupdates.sh scripts is update it make it executable
|
|
chmod +x ./cron/getupdates.sh
|
|
# if there are changes, run docker-compose up with force-restart
|
|
docker-compose up -d --force-restart
|
|
fi
|