use env var for startup script

This commit is contained in:
cupcakearmy 2022-06-07 12:41:20 +02:00
parent 35ba25ba9e
commit a257d2cefb
No known key found for this signature in database
GPG Key ID: 3235314B4D31232F
4 changed files with 14 additions and 6 deletions

View File

@ -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

2
backend/Cargo.lock generated
View File

@ -398,7 +398,7 @@ dependencies = [
[[package]]
name = "cryptgeon"
version = "1.5.2"
version = "1.5.3"
dependencies = [
"actix-files",
"actix-web",

View File

@ -1,6 +1,6 @@
[package]
name = "cryptgeon"
version = "1.5.2"
version = "1.5.3"
authors = ["cupcakearmy <hi@nicco.io>"]
edition = "2021"

View File

@ -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"