mirror of
https://github.com/EvilFreelancer/docker-routeros.git
synced 2025-08-30 22:49:26 +02:00
Rename to ROUTEROS_VERSION.
This commit is contained in:
parent
7c5f724e25
commit
9ce84b8a7a
2 changed files with 4 additions and 5 deletions
3
cron.sh
3
cron.sh
|
@ -36,11 +36,10 @@ getTarballs | while read line; do
|
|||
|
||||
if [ "x$(checkTag "$tag")" == "x" ]
|
||||
then
|
||||
|
||||
url="https://download.mikrotik.com/routeros/$tag/chr-$tag.vdi"
|
||||
if curl --output /dev/null --silent --head --fail "$url"; then
|
||||
echo ">>> URL exists: $url"
|
||||
sed -r "s/(ROUTEROS_VERSON=\")(.*)(\")/\1$tag\3/g" -i Dockerfile
|
||||
sed -r "s/(ROUTEROS_VERSION=\")(.*)(\")/\1$tag\3/g" -i Dockerfile
|
||||
git commit -m "Release of RouterOS changed to $tag" -a
|
||||
git push
|
||||
git tag "$tag"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue