Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions 2024.12/apache/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions 2024.12/fpm-alpine/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions 2024.12/fpm/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions 2025.02-dev/apache/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions 2025.02-dev/fpm-alpine/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions 2025.02-dev/fpm/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions 2025.07-rc/apache/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions 2025.07-rc/fpm-alpine/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions 2025.07-rc/fpm/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading