mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-04-15 20:07:13 -04:00
* [CI] Run shellcheck and shfmt Cf. https://github.com/FreshRSS/FreshRSS/pull/2436#discussion_r305640019 * rename * no need for disable anymore * also remove leftover indentation flags even if it makes no difference to syntax checking * define colors and reset before exit for local use
19 lines
446 B
Bash
Executable File
19 lines
446 B
Bash
Executable File
#!/bin/sh
|
|
|
|
php -f ./cli/prepare.php >/dev/null
|
|
|
|
chown -R :www-data .
|
|
chmod -R g+r . && chmod -R g+w ./data/
|
|
|
|
find /etc/php*/ -name php.ini -exec sed -r -i "\\#^;?date.timezone#s#^.*#date.timezone = $TZ#" {} \;
|
|
|
|
if [ -n "$CRON_MIN" ]; then
|
|
(
|
|
echo "export TZ=$TZ"
|
|
echo "export COPY_SYSLOG_TO_STDERR=$COPY_SYSLOG_TO_STDERR"
|
|
) >/var/www/FreshRSS/Docker/env.txt
|
|
crontab -l | sed -r "\\#FreshRSS#s#^[^ ]+ #$CRON_MIN #" | crontab -
|
|
fi
|
|
|
|
exec "$@"
|