ttrss-container/app/prepare-config.php

7 lines
190 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.php-xaccel >> config.docker.php