mirror of
https://github.com/friendica/docker
synced 2025-12-07 22:07:09 +01:00
Merge b8d7d1fdba into fe43744683
This commit is contained in:
commit
c916cb4634
10 changed files with 80 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue