17 lines
442 B
Bash
Executable file
17 lines
442 B
Bash
Executable file
#!/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
|
|
|
|
make -C /www/locale
|
|
|
|
mkdir -p "$CSR_DIRECTORY" "$CRT_DIRECTORY"
|
|
chown www-data "$CSR_DIRECTORY" "$CRT_DIRECTORY"
|
|
chmod 0755 "$CSR_DIRECTORY" "$CRT_DIRECTORY"
|
|
|
|
apache2ctl start "$@"
|
|
|
|
exec tail -F --follow=name --retry /var/log/apache2/error.log /var/log/apache2/phperror.log
|