2
0
Fork 0
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:
ne20002 2025-08-30 14:31:41 +00:00
commit b154a4fbdf
No known key found for this signature in database
GPG key ID: 429E95F6E49B54C8
31 changed files with 43 additions and 97 deletions

View file

@ -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' => [

View file

@ -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

View file

@ -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' => [

View file

@ -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

View file

@ -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

View file

@ -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' => [

View file

@ -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

View file

@ -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

View file

@ -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' => [

View file

@ -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

View file

@ -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

View file

@ -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' => [

View file

@ -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

View file

@ -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

View file

@ -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' => [

View file

@ -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

View file

@ -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

View file

@ -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' => [

View file

@ -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

View file

@ -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

View file

@ -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' => [

View file

@ -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

View file

@ -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

View file

@ -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' => [

View file

@ -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

View file

@ -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

View file

@ -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' => [

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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