Fixing some issues:

- explicit exec entrypoint.sh
- Adding "shadow" support
- Adding "usermod" calls for setting username
- Remove superfluous $PHPIZE_DEPS from debian package
This commit is contained in:
Philipp Holzer 2020-01-03 19:20:20 +01:00
parent c37e773016
commit bbd9df6049
No known key found for this signature in database
GPG Key ID: D8365C3D36B77D90
19 changed files with 24 additions and 26 deletions

View File

@ -24,7 +24,6 @@ RUN set -ex; \
apt-get install -y --no-install-recommends \
mysql-client \
bash \
$PHPIZE_DEPS \
libpng-dev \
libjpeg62-turbo-dev \
libtool \

View File

@ -23,8 +23,8 @@ setup_ssmtp() {
smtp_from=${SMTP_FROM:-no-reply}
# Setup SSMTP
sed -i "s/:root:/:${FRIENDICA_SITENAME}:/g" /etc/passwd
sed -i "s/:Linux\ User:/:${FRIENDICA_SITENAME}:/g" /etc/passwd
usermod --comment "$(echo "${FRIENDICA_SITENAME}" | tr -dc '[:alnum:]')" root
usermod --comment "$(echo "${FRIENDICA_SITENAME}" | tr -dc '[:alnum:]')" www-data
# add possible mail-senders
{

View File

@ -7,7 +7,8 @@ RUN set -ex; \
rsync \
git \
# For mail() support
ssmtp;
ssmtp \
shadow;
# install the PHP extensions we need
# see https://friendi.ca/resources/requirements/

View File

@ -23,8 +23,8 @@ setup_ssmtp() {
smtp_from=${SMTP_FROM:-no-reply}
# Setup SSMTP
sed -i "s/:root:/:${FRIENDICA_SITENAME}:/g" /etc/passwd
sed -i "s/:Linux\ User:/:${FRIENDICA_SITENAME}:/g" /etc/passwd
usermod --comment "$(echo "${FRIENDICA_SITENAME}" | tr -dc '[:alnum:]')" root
usermod --comment "$(echo "${FRIENDICA_SITENAME}" | tr -dc '[:alnum:]')" www-data
# add possible mail-senders
{

View File

@ -24,7 +24,6 @@ RUN set -ex; \
apt-get install -y --no-install-recommends \
mysql-client \
bash \
$PHPIZE_DEPS \
libpng-dev \
libjpeg62-turbo-dev \
libtool \

View File

@ -23,8 +23,8 @@ setup_ssmtp() {
smtp_from=${SMTP_FROM:-no-reply}
# Setup SSMTP
sed -i "s/:root:/:${FRIENDICA_SITENAME}:/g" /etc/passwd
sed -i "s/:Linux\ User:/:${FRIENDICA_SITENAME}:/g" /etc/passwd
usermod --comment "$(echo "${FRIENDICA_SITENAME}" | tr -dc '[:alnum:]')" root
usermod --comment "$(echo "${FRIENDICA_SITENAME}" | tr -dc '[:alnum:]')" www-data
# add possible mail-senders
{

View File

@ -24,7 +24,6 @@ RUN set -ex; \
apt-get install -y --no-install-recommends \
mysql-client \
bash \
$PHPIZE_DEPS \
libpng-dev \
libjpeg62-turbo-dev \
libtool \

View File

@ -66,4 +66,4 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
fi
fi
/entrypoint.sh "$@"
exec /entrypoint.sh "$@"

View File

@ -23,8 +23,8 @@ setup_ssmtp() {
smtp_from=${SMTP_FROM:-no-reply}
# Setup SSMTP
sed -i "s/:root:/:${FRIENDICA_SITENAME}:/g" /etc/passwd
sed -i "s/:Linux\ User:/:${FRIENDICA_SITENAME}:/g" /etc/passwd
usermod --comment "$(echo "${FRIENDICA_SITENAME}" | tr -dc '[:alnum:]')" root
usermod --comment "$(echo "${FRIENDICA_SITENAME}" | tr -dc '[:alnum:]')" www-data
# add possible mail-senders
{

View File

@ -7,7 +7,8 @@ RUN set -ex; \
rsync \
git \
# For mail() support
ssmtp;
ssmtp \
shadow;
# install the PHP extensions we need
# see https://friendi.ca/resources/requirements/

View File

@ -66,4 +66,4 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
fi
fi
/entrypoint.sh "$@"
exec /entrypoint.sh "$@"

View File

@ -23,8 +23,8 @@ setup_ssmtp() {
smtp_from=${SMTP_FROM:-no-reply}
# Setup SSMTP
sed -i "s/:root:/:${FRIENDICA_SITENAME}:/g" /etc/passwd
sed -i "s/:Linux\ User:/:${FRIENDICA_SITENAME}:/g" /etc/passwd
usermod --comment "$(echo "${FRIENDICA_SITENAME}" | tr -dc '[:alnum:]')" root
usermod --comment "$(echo "${FRIENDICA_SITENAME}" | tr -dc '[:alnum:]')" www-data
# add possible mail-senders
{

View File

@ -24,7 +24,6 @@ RUN set -ex; \
apt-get install -y --no-install-recommends \
mysql-client \
bash \
$PHPIZE_DEPS \
libpng-dev \
libjpeg62-turbo-dev \
libtool \

View File

@ -66,4 +66,4 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
fi
fi
/entrypoint.sh "$@"
exec /entrypoint.sh "$@"

View File

@ -23,8 +23,8 @@ setup_ssmtp() {
smtp_from=${SMTP_FROM:-no-reply}
# Setup SSMTP
sed -i "s/:root:/:${FRIENDICA_SITENAME}:/g" /etc/passwd
sed -i "s/:Linux\ User:/:${FRIENDICA_SITENAME}:/g" /etc/passwd
usermod --comment "$(echo "${FRIENDICA_SITENAME}" | tr -dc '[:alnum:]')" root
usermod --comment "$(echo "${FRIENDICA_SITENAME}" | tr -dc '[:alnum:]')" www-data
# add possible mail-senders
{

View File

@ -6,7 +6,8 @@ RUN set -ex; \
rsync \
git \
# For mail() support
ssmtp;
ssmtp \
shadow;
# install the PHP extensions we need
# see https://friendi.ca/resources/requirements/

View File

@ -23,7 +23,6 @@ RUN set -ex; \
apt-get install -y --no-install-recommends \
mysql-client \
bash \
$PHPIZE_DEPS \
libpng-dev \
libjpeg62-turbo-dev \
libtool \

View File

@ -66,4 +66,4 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
fi
fi
/entrypoint.sh "$@"
exec /entrypoint.sh "$@"

View File

@ -23,8 +23,8 @@ setup_ssmtp() {
smtp_from=${SMTP_FROM:-no-reply}
# Setup SSMTP
sed -i "s/:root:/:${FRIENDICA_SITENAME}:/g" /etc/passwd
sed -i "s/:Linux\ User:/:${FRIENDICA_SITENAME}:/g" /etc/passwd
usermod --comment "$(echo "${FRIENDICA_SITENAME}" | tr -dc '[:alnum:]')" root
usermod --comment "$(echo "${FRIENDICA_SITENAME}" | tr -dc '[:alnum:]')" www-data
# add possible mail-senders
{