ttrss-container/app/prepare-config.php

7 lines
172 B
Bash
Executable File

#!/bin/sh
sed -e "s/define('\([A-Z_]\+\)', [^)]\+/define('\1', getenv('TTRSS_\1')/" \
< config.php-dist > config.docker.php
cat config.php-config.d >> config.docker.php