diff --git a/CHANGELOG.md b/CHANGELOG.md index f45f708..2dfe755 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.5.3] - 2022-06-07 + +### Changed + +- Use the value from the `MEMCACHE` env variable in startup script. + ## [1.5.2] - 2022-06-07 ### Added diff --git a/backend/Cargo.lock b/backend/Cargo.lock index ed65b6c..8ec24c5 100644 --- a/backend/Cargo.lock +++ b/backend/Cargo.lock @@ -398,7 +398,7 @@ dependencies = [ [[package]] name = "cryptgeon" -version = "1.5.2" +version = "1.5.3" dependencies = [ "actix-files", "actix-web", diff --git a/backend/Cargo.toml b/backend/Cargo.toml index 40398ed..d53156e 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cryptgeon" -version = "1.5.2" +version = "1.5.3" authors = ["cupcakearmy "] edition = "2021" diff --git a/entry.sh b/entry.sh index 7664640..d5b774b 100755 --- a/entry.sh +++ b/entry.sh @@ -1,10 +1,12 @@ -#!/bin/ash +#!/bin/sh -echo "Waiting for memcached" -while ! nc -z -w 1 memcached 11211; do +HOST=$(echo $MEMCACHE | cut -d: -f1) +PORT=$(echo $MEMCACHE | cut -d: -f2) +echo "Waiting for memcached at $HOST:$PORT" +while ! nc -z -w 1 $HOST $PORT; do sleep 1 - echo "..." + echo "retrying..." done echo "Starting server"