mirror of
https://github.com/luzifer-docker/openfire.git
synced 2024-12-20 20:21:19 +00:00
Fix update check
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
f7c6a8ac3d
commit
b0dd05eb24
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ git reset --hard origin/master
|
||||||
|
|
||||||
version=$(curl -s "https://lv.luzifer.io/catalog-api/openfire/latest.txt?p=version")
|
version=$(curl -s "https://lv.luzifer.io/catalog-api/openfire/latest.txt?p=version")
|
||||||
versionVar=$(echo "${version}" | sed 's/\./_/g')
|
versionVar=$(echo "${version}" | sed 's/\./_/g')
|
||||||
grep -q "OPENFIRE_VERSION=${versionVar} " Dockerfile && exit 0 || echo "Update required"
|
grep -q "OPENFIRE_VERSION=${versionVar}" Dockerfile && exit 0 || echo "Update required"
|
||||||
|
|
||||||
sed -Ei \
|
sed -Ei \
|
||||||
-e "s/OPENFIRE_VERSION=[0-9_]+/OPENFIRE_VERSION=${versionVar}/" \
|
-e "s/OPENFIRE_VERSION=[0-9_]+/OPENFIRE_VERSION=${versionVar}/" \
|
||||||
|
|
Loading…
Reference in a new issue