2
0
Fork 0
mirror of https://github.com/friendica/docker synced 2025-12-07 22:07:09 +01:00
This commit is contained in:
ne20002 2025-08-31 00:12:47 +02:00 committed by GitHub
commit c916cb4634
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 80 additions and 0 deletions

View file

@ -39,8 +39,16 @@ 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 runuser --login www-data --command "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

@ -39,8 +39,16 @@ 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 runuser --login www-data --command "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

@ -39,8 +39,16 @@ 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 runuser --login www-data --command "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

@ -39,8 +39,16 @@ 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 runuser --login www-data --command "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

@ -39,8 +39,16 @@ 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 runuser --login www-data --command "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

@ -39,8 +39,16 @@ 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 runuser --login www-data --command "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

@ -39,8 +39,16 @@ 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 runuser --login www-data --command "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

@ -39,8 +39,16 @@ 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 runuser --login www-data --command "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

@ -39,8 +39,16 @@ 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 runuser --login www-data --command "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

@ -39,8 +39,16 @@ 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 runuser --login www-data --command "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