mirror of
https://github.com/recklessop/zroc.git
synced 2026-07-05 13:53:15 -04:00
Create getupdates.sh
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
#!/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 there are changes, run docker-compose up with force-restart
|
||||||
|
docker-compose up -d --force-restart
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user