2020-12-20 14:52:15 +01:00
|
|
|
#!/bin/sh
|
|
|
|
set -eux
|
|
|
|
|
|
|
|
# Apache gets grumpy about PID files pre-existing
|
|
|
|
rm -f /run/apache2/apache2.pid
|
|
|
|
|
|
|
|
cp /usr/local/etc/application/feed.rss /www/pages/index/feed.rss
|
|
|
|
|
2020-12-21 18:44:20 +01:00
|
|
|
make -C /www/locale
|
|
|
|
|
2020-12-23 22:14:13 +01:00
|
|
|
mkdir -p "$CSR_DIRECTORY" "$CRT_DIRECTORY"
|
|
|
|
chown www-data "$CSR_DIRECTORY" "$CRT_DIRECTORY"
|
|
|
|
chmod 0755 "$CSR_DIRECTORY" "$CRT_DIRECTORY"
|
|
|
|
|
2020-12-20 14:52:15 +01:00
|
|
|
apache2ctl start "$@"
|
|
|
|
|
|
|
|
exec tail -F --follow=name --retry /var/log/apache2/error.log /var/log/apache2/phperror.log
|