mirror of
https://github.com/friendica/docker
synced 2026-02-13 06:51:22 +01:00
Adding logfile at startup
This commit is contained in:
parent
c880649dfa
commit
b154a4fbdf
31 changed files with 43 additions and 97 deletions
|
|
@ -12,7 +12,7 @@ $config = [
|
|||
// Necessary because otherwise the daemon isn't working
|
||||
'pidfile' => '/var/run/friendica.pid',
|
||||
|
||||
'logfile' => '/var/www/html/friendica.log',
|
||||
'logfile' => '/var/log/friendica.log',
|
||||
'loglevel' => 'notice',
|
||||
],
|
||||
'storage' => [
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ RUN set -ex; \
|
|||
\
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
sudo \
|
||||
rsync \
|
||||
bzip2 \
|
||||
# For mail() support
|
||||
|
|
@ -170,6 +169,9 @@ RUN set -ex; \
|
|||
mkdir -p -m 775 /var/www/data; \
|
||||
chown -R www-data:www-data /var/www/data
|
||||
|
||||
RUN set -ex; \
|
||||
ln -sf /dev/stdout /var/log/friendica.log
|
||||
|
||||
VOLUME /var/www/html
|
||||
VOLUME /var/www/data
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ $config = [
|
|||
// Necessary because otherwise the daemon isn't working
|
||||
'pidfile' => '/var/run/friendica.pid',
|
||||
|
||||
'logfile' => '/var/www/html/friendica.log',
|
||||
'logfile' => '/var/log/friendica.log',
|
||||
'loglevel' => 'notice',
|
||||
],
|
||||
'storage' => [
|
||||
|
|
|
|||
|
|
@ -39,16 +39,8 @@ file_env() {
|
|||
unset "$fileVar"
|
||||
}
|
||||
|
||||
# initialize the email configuration
|
||||
sh /setup_msmtp.sh
|
||||
|
||||
# ensure we have a logfile writeable by www-data
|
||||
FRIENDICA_LOGFILE=${FRIENDICA_LOGFILE:-/var/www/html/friendica.log}
|
||||
if sudo -u www-data test -w "$(dirname "$FRIENDICA_LOGFILE")"; then
|
||||
touch "$FRIENDICA_LOGFILE"
|
||||
chown www-data:www-data "$FRIENDICA_LOGFILE"
|
||||
fi
|
||||
|
||||
# just check if we execute apache or php-fpm
|
||||
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||
if [ -n "${REDIS_HOST+x}" ]; then
|
||||
|
|
|
|||
|
|
@ -139,6 +139,9 @@ RUN set -ex; \
|
|||
mkdir -p -m 775 /var/www/data; \
|
||||
chown -R www-data:www-data /var/www/data
|
||||
|
||||
RUN set -ex; \
|
||||
ln -sf /dev/stdout /var/log/friendica.log
|
||||
|
||||
VOLUME /var/www/html
|
||||
VOLUME /var/www/data
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ $config = [
|
|||
// Necessary because otherwise the daemon isn't working
|
||||
'pidfile' => '/var/run/friendica.pid',
|
||||
|
||||
'logfile' => '/var/www/html/friendica.log',
|
||||
'logfile' => '/var/log/friendica.log',
|
||||
'loglevel' => 'notice',
|
||||
],
|
||||
'storage' => [
|
||||
|
|
|
|||
|
|
@ -39,16 +39,8 @@ file_env() {
|
|||
unset "$fileVar"
|
||||
}
|
||||
|
||||
# initialize the email configuration
|
||||
sh /setup_msmtp.sh
|
||||
|
||||
# ensure we have a logfile writeable by www-data
|
||||
FRIENDICA_LOGFILE=${FRIENDICA_LOGFILE:-/var/www/html/friendica.log}
|
||||
if sudo -u www-data test -w "$(dirname "$FRIENDICA_LOGFILE")"; then
|
||||
touch "$FRIENDICA_LOGFILE"
|
||||
chown www-data:www-data "$FRIENDICA_LOGFILE"
|
||||
fi
|
||||
|
||||
# just check if we execute apache or php-fpm
|
||||
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||
if [ -n "${REDIS_HOST+x}" ]; then
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ RUN set -ex; \
|
|||
\
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
sudo \
|
||||
rsync \
|
||||
bzip2 \
|
||||
# For mail() support
|
||||
|
|
@ -162,6 +161,9 @@ RUN set -ex; \
|
|||
mkdir -p -m 775 /var/www/data; \
|
||||
chown -R www-data:www-data /var/www/data
|
||||
|
||||
RUN set -ex; \
|
||||
ln -sf /dev/stdout /var/log/friendica.log
|
||||
|
||||
VOLUME /var/www/html
|
||||
VOLUME /var/www/data
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ $config = [
|
|||
// Necessary because otherwise the daemon isn't working
|
||||
'pidfile' => '/var/run/friendica.pid',
|
||||
|
||||
'logfile' => '/var/www/html/friendica.log',
|
||||
'logfile' => '/var/log/friendica.log',
|
||||
'loglevel' => 'notice',
|
||||
],
|
||||
'storage' => [
|
||||
|
|
|
|||
|
|
@ -39,16 +39,8 @@ file_env() {
|
|||
unset "$fileVar"
|
||||
}
|
||||
|
||||
# initialize the email configuration
|
||||
sh /setup_msmtp.sh
|
||||
|
||||
# ensure we have a logfile writeable by www-data
|
||||
FRIENDICA_LOGFILE=${FRIENDICA_LOGFILE:-/var/www/html/friendica.log}
|
||||
if sudo -u www-data test -w "$(dirname "$FRIENDICA_LOGFILE")"; then
|
||||
touch "$FRIENDICA_LOGFILE"
|
||||
chown www-data:www-data "$FRIENDICA_LOGFILE"
|
||||
fi
|
||||
|
||||
# just check if we execute apache or php-fpm
|
||||
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||
if [ -n "${REDIS_HOST+x}" ]; then
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ RUN set -ex; \
|
|||
\
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
sudo \
|
||||
rsync \
|
||||
bzip2 \
|
||||
# For mail() support
|
||||
|
|
@ -170,6 +169,9 @@ RUN set -ex; \
|
|||
mkdir -p -m 775 /var/www/data; \
|
||||
chown -R www-data:www-data /var/www/data
|
||||
|
||||
RUN set -ex; \
|
||||
ln -sf /dev/stdout /var/log/friendica.log
|
||||
|
||||
VOLUME /var/www/html
|
||||
VOLUME /var/www/data
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ $config = [
|
|||
// Necessary because otherwise the daemon isn't working
|
||||
'pidfile' => '/var/run/friendica.pid',
|
||||
|
||||
'logfile' => '/var/www/html/friendica.log',
|
||||
'logfile' => '/var/log/friendica.log',
|
||||
'loglevel' => 'notice',
|
||||
],
|
||||
'storage' => [
|
||||
|
|
|
|||
|
|
@ -39,16 +39,8 @@ file_env() {
|
|||
unset "$fileVar"
|
||||
}
|
||||
|
||||
# initialize the email configuration
|
||||
sh /setup_msmtp.sh
|
||||
|
||||
# ensure we have a logfile writeable by www-data
|
||||
FRIENDICA_LOGFILE=${FRIENDICA_LOGFILE:-/var/www/html/friendica.log}
|
||||
if sudo -u www-data test -w "$(dirname "$FRIENDICA_LOGFILE")"; then
|
||||
touch "$FRIENDICA_LOGFILE"
|
||||
chown www-data:www-data "$FRIENDICA_LOGFILE"
|
||||
fi
|
||||
|
||||
# just check if we execute apache or php-fpm
|
||||
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||
if [ -n "${REDIS_HOST+x}" ]; then
|
||||
|
|
|
|||
|
|
@ -139,6 +139,9 @@ RUN set -ex; \
|
|||
mkdir -p -m 775 /var/www/data; \
|
||||
chown -R www-data:www-data /var/www/data
|
||||
|
||||
RUN set -ex; \
|
||||
ln -sf /dev/stdout /var/log/friendica.log
|
||||
|
||||
VOLUME /var/www/html
|
||||
VOLUME /var/www/data
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ $config = [
|
|||
// Necessary because otherwise the daemon isn't working
|
||||
'pidfile' => '/var/run/friendica.pid',
|
||||
|
||||
'logfile' => '/var/www/html/friendica.log',
|
||||
'logfile' => '/var/log/friendica.log',
|
||||
'loglevel' => 'notice',
|
||||
],
|
||||
'storage' => [
|
||||
|
|
|
|||
|
|
@ -39,16 +39,8 @@ file_env() {
|
|||
unset "$fileVar"
|
||||
}
|
||||
|
||||
# initialize the email configuration
|
||||
sh /setup_msmtp.sh
|
||||
|
||||
# ensure we have a logfile writeable by www-data
|
||||
FRIENDICA_LOGFILE=${FRIENDICA_LOGFILE:-/var/www/html/friendica.log}
|
||||
if sudo -u www-data test -w "$(dirname "$FRIENDICA_LOGFILE")"; then
|
||||
touch "$FRIENDICA_LOGFILE"
|
||||
chown www-data:www-data "$FRIENDICA_LOGFILE"
|
||||
fi
|
||||
|
||||
# just check if we execute apache or php-fpm
|
||||
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||
if [ -n "${REDIS_HOST+x}" ]; then
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ RUN set -ex; \
|
|||
\
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
sudo \
|
||||
rsync \
|
||||
bzip2 \
|
||||
# For mail() support
|
||||
|
|
@ -162,6 +161,9 @@ RUN set -ex; \
|
|||
mkdir -p -m 775 /var/www/data; \
|
||||
chown -R www-data:www-data /var/www/data
|
||||
|
||||
RUN set -ex; \
|
||||
ln -sf /dev/stdout /var/log/friendica.log
|
||||
|
||||
VOLUME /var/www/html
|
||||
VOLUME /var/www/data
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ $config = [
|
|||
// Necessary because otherwise the daemon isn't working
|
||||
'pidfile' => '/var/run/friendica.pid',
|
||||
|
||||
'logfile' => '/var/www/html/friendica.log',
|
||||
'logfile' => '/var/log/friendica.log',
|
||||
'loglevel' => 'notice',
|
||||
],
|
||||
'storage' => [
|
||||
|
|
|
|||
|
|
@ -39,16 +39,8 @@ file_env() {
|
|||
unset "$fileVar"
|
||||
}
|
||||
|
||||
# initialize the email configuration
|
||||
sh /setup_msmtp.sh
|
||||
|
||||
# ensure we have a logfile writeable by www-data
|
||||
FRIENDICA_LOGFILE=${FRIENDICA_LOGFILE:-/var/www/html/friendica.log}
|
||||
if sudo -u www-data test -w "$(dirname "$FRIENDICA_LOGFILE")"; then
|
||||
touch "$FRIENDICA_LOGFILE"
|
||||
chown www-data:www-data "$FRIENDICA_LOGFILE"
|
||||
fi
|
||||
|
||||
# just check if we execute apache or php-fpm
|
||||
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||
if [ -n "${REDIS_HOST+x}" ]; then
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ RUN set -ex; \
|
|||
\
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
sudo \
|
||||
rsync \
|
||||
bzip2 \
|
||||
# For mail() support
|
||||
|
|
@ -170,6 +169,9 @@ RUN set -ex; \
|
|||
mkdir -p -m 775 /var/www/data; \
|
||||
chown -R www-data:www-data /var/www/data
|
||||
|
||||
RUN set -ex; \
|
||||
ln -sf /dev/stdout /var/log/friendica.log
|
||||
|
||||
VOLUME /var/www/html
|
||||
VOLUME /var/www/data
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ $config = [
|
|||
// Necessary because otherwise the daemon isn't working
|
||||
'pidfile' => '/var/run/friendica.pid',
|
||||
|
||||
'logfile' => '/var/www/html/friendica.log',
|
||||
'logfile' => '/var/log/friendica.log',
|
||||
'loglevel' => 'notice',
|
||||
],
|
||||
'storage' => [
|
||||
|
|
|
|||
|
|
@ -39,16 +39,8 @@ file_env() {
|
|||
unset "$fileVar"
|
||||
}
|
||||
|
||||
# initialize the email configuration
|
||||
sh /setup_msmtp.sh
|
||||
|
||||
# ensure we have a logfile writeable by www-data
|
||||
FRIENDICA_LOGFILE=${FRIENDICA_LOGFILE:-/var/www/html/friendica.log}
|
||||
if sudo -u www-data test -w "$(dirname "$FRIENDICA_LOGFILE")"; then
|
||||
touch "$FRIENDICA_LOGFILE"
|
||||
chown www-data:www-data "$FRIENDICA_LOGFILE"
|
||||
fi
|
||||
|
||||
# just check if we execute apache or php-fpm
|
||||
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||
if [ -n "${REDIS_HOST+x}" ]; then
|
||||
|
|
|
|||
|
|
@ -139,6 +139,9 @@ RUN set -ex; \
|
|||
mkdir -p -m 775 /var/www/data; \
|
||||
chown -R www-data:www-data /var/www/data
|
||||
|
||||
RUN set -ex; \
|
||||
ln -sf /dev/stdout /var/log/friendica.log
|
||||
|
||||
VOLUME /var/www/html
|
||||
VOLUME /var/www/data
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ $config = [
|
|||
// Necessary because otherwise the daemon isn't working
|
||||
'pidfile' => '/var/run/friendica.pid',
|
||||
|
||||
'logfile' => '/var/www/html/friendica.log',
|
||||
'logfile' => '/var/log/friendica.log',
|
||||
'loglevel' => 'notice',
|
||||
],
|
||||
'storage' => [
|
||||
|
|
|
|||
|
|
@ -39,16 +39,8 @@ file_env() {
|
|||
unset "$fileVar"
|
||||
}
|
||||
|
||||
# initialize the email configuration
|
||||
sh /setup_msmtp.sh
|
||||
|
||||
# ensure we have a logfile writeable by www-data
|
||||
FRIENDICA_LOGFILE=${FRIENDICA_LOGFILE:-/var/www/html/friendica.log}
|
||||
if sudo -u www-data test -w "$(dirname "$FRIENDICA_LOGFILE")"; then
|
||||
touch "$FRIENDICA_LOGFILE"
|
||||
chown www-data:www-data "$FRIENDICA_LOGFILE"
|
||||
fi
|
||||
|
||||
# just check if we execute apache or php-fpm
|
||||
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||
if [ -n "${REDIS_HOST+x}" ]; then
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ RUN set -ex; \
|
|||
\
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
sudo \
|
||||
rsync \
|
||||
bzip2 \
|
||||
# For mail() support
|
||||
|
|
@ -162,6 +161,9 @@ RUN set -ex; \
|
|||
mkdir -p -m 775 /var/www/data; \
|
||||
chown -R www-data:www-data /var/www/data
|
||||
|
||||
RUN set -ex; \
|
||||
ln -sf /dev/stdout /var/log/friendica.log
|
||||
|
||||
VOLUME /var/www/html
|
||||
VOLUME /var/www/data
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ $config = [
|
|||
// Necessary because otherwise the daemon isn't working
|
||||
'pidfile' => '/var/run/friendica.pid',
|
||||
|
||||
'logfile' => '/var/www/html/friendica.log',
|
||||
'logfile' => '/var/log/friendica.log',
|
||||
'loglevel' => 'notice',
|
||||
],
|
||||
'storage' => [
|
||||
|
|
|
|||
|
|
@ -39,16 +39,8 @@ file_env() {
|
|||
unset "$fileVar"
|
||||
}
|
||||
|
||||
# initialize the email configuration
|
||||
sh /setup_msmtp.sh
|
||||
|
||||
# ensure we have a logfile writeable by www-data
|
||||
FRIENDICA_LOGFILE=${FRIENDICA_LOGFILE:-/var/www/html/friendica.log}
|
||||
if sudo -u www-data test -w "$(dirname "$FRIENDICA_LOGFILE")"; then
|
||||
touch "$FRIENDICA_LOGFILE"
|
||||
chown www-data:www-data "$FRIENDICA_LOGFILE"
|
||||
fi
|
||||
|
||||
# just check if we execute apache or php-fpm
|
||||
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||
if [ -n "${REDIS_HOST+x}" ]; then
|
||||
|
|
|
|||
|
|
@ -137,6 +137,9 @@ RUN set -ex; \
|
|||
mkdir -p -m 775 /var/www/data; \
|
||||
chown -R www-data:www-data /var/www/data
|
||||
|
||||
RUN set -ex; \
|
||||
ln -sf /dev/stdout /var/log/friendica.log
|
||||
|
||||
VOLUME /var/www/html
|
||||
VOLUME /var/www/data
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ RUN set -ex; \
|
|||
\
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
sudo \
|
||||
rsync \
|
||||
bzip2 \
|
||||
# For mail() support
|
||||
|
|
@ -160,6 +159,9 @@ RUN set -ex; \
|
|||
mkdir -p -m 775 /var/www/data; \
|
||||
chown -R www-data:www-data /var/www/data
|
||||
|
||||
RUN set -ex; \
|
||||
ln -sf /dev/stdout /var/log/friendica.log
|
||||
|
||||
VOLUME /var/www/html
|
||||
VOLUME /var/www/data
|
||||
|
||||
|
|
|
|||
|
|
@ -39,16 +39,8 @@ file_env() {
|
|||
unset "$fileVar"
|
||||
}
|
||||
|
||||
# initialize the email configuration
|
||||
sh /setup_msmtp.sh
|
||||
|
||||
# ensure we have a logfile writeable by www-data
|
||||
FRIENDICA_LOGFILE=${FRIENDICA_LOGFILE:-/var/www/html/friendica.log}
|
||||
if sudo -u www-data test -w "$(dirname "$FRIENDICA_LOGFILE")"; then
|
||||
touch "$FRIENDICA_LOGFILE"
|
||||
chown www-data:www-data "$FRIENDICA_LOGFILE"
|
||||
fi
|
||||
|
||||
# just check if we execute apache or php-fpm
|
||||
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||
if [ -n "${REDIS_HOST+x}" ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue