add check
This commit is contained in:
@@ -18,10 +18,16 @@ shelly-plug:
|
|||||||
- -ec
|
- -ec
|
||||||
- |
|
- |
|
||||||
cd /var/www/html
|
cd /var/www/html
|
||||||
git init
|
if [ -d ".git" ]; then
|
||||||
git remote add origin https://github.com/geerlingguy/shelly-plug-prometheus.git
|
echo "Git repository found. Pulling latest changes..."
|
||||||
git fetch origin
|
git pull
|
||||||
git checkout origin/master -ft
|
else
|
||||||
|
echo "Not a git repository. Initializing ..."
|
||||||
|
git init
|
||||||
|
git remote add origin https://github.com/geerlingguy/shelly-plug-prometheus.git
|
||||||
|
git fetch origin
|
||||||
|
git checkout origin/master -ft
|
||||||
|
fi
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
|
Reference in New Issue
Block a user