From f6fec0d20292c1e5bc56477e6a859bf9e54f416b Mon Sep 17 00:00:00 2001 From: Leonard Jonathan Oh Date: Sun, 28 Jan 2024 09:48:51 +0000 Subject: [PATCH] Enhancement (ASP): Generate new stateless config file on entrypoint in docker --- config/ASP/docker-entrypoint.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/ASP/docker-entrypoint.sh b/config/ASP/docker-entrypoint.sh index 1d00d5a..8d8c57b 100755 --- a/config/ASP/docker-entrypoint.sh +++ b/config/ASP/docker-entrypoint.sh @@ -17,8 +17,11 @@ setup() { echo "Setting permissions on backup volume" setup /src/ASP/system/database/backups 1 -echo "Setting up config file" CONFIG_FILE=/src/ASP/system/config/config.php +if [ -f "$CONFIG_FILE" ]; then + echo "Removing existing config file" +fi +echo "Setting up config file" php /src/ASP/index.php > /dev/null ls -al $CONFIG_FILE