File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ RUN set -ex; \
66 \
77 apt-get update; \
88 apt-get install -y --no-install-recommends \
9- sudo \
109 rsync \
1110 bzip2 \
1211# For mail() support
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ sh /setup_msmtp.sh
4444
4545# ensure we have a logfile writeable by www-data
4646FRIENDICA_LOGFILE=${FRIENDICA_LOGFILE:-/ var/ www/ html/ friendica.log}
47- if sudo -u www-data test -w " $( dirname " $FRIENDICA_LOGFILE " ) " ; then
47+ if runuser --login www-data --command " test -w \ "$( dirname \ "$FRIENDICA_LOGFILE \ ") " ; then
4848 touch " $FRIENDICA_LOGFILE "
4949 chown www-data:www-data " $FRIENDICA_LOGFILE "
5050fi
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ sh /setup_msmtp.sh
4444
4545# ensure we have a logfile writeable by www-data
4646FRIENDICA_LOGFILE=${FRIENDICA_LOGFILE:-/ var/ www/ html/ friendica.log}
47- if sudo -u www-data test -w " $( dirname " $FRIENDICA_LOGFILE " ) " ; then
47+ if runuser --login www-data --command " test -w \ "$( dirname \ "$FRIENDICA_LOGFILE \ ") " ; then
4848 touch " $FRIENDICA_LOGFILE "
4949 chown www-data:www-data " $FRIENDICA_LOGFILE "
5050fi
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ RUN set -ex; \
66 \
77 apt-get update; \
88 apt-get install -y --no-install-recommends \
9- sudo \
109 rsync \
1110 bzip2 \
1211# For mail() support
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ sh /setup_msmtp.sh
4444
4545# ensure we have a logfile writeable by www-data
4646FRIENDICA_LOGFILE=${FRIENDICA_LOGFILE:-/ var/ www/ html/ friendica.log}
47- if sudo -u www-data test -w " $( dirname " $FRIENDICA_LOGFILE " ) " ; then
47+ if runuser --login www-data --command " test -w \ "$( dirname \ "$FRIENDICA_LOGFILE \ ") " ; then
4848 touch " $FRIENDICA_LOGFILE "
4949 chown www-data:www-data " $FRIENDICA_LOGFILE "
5050fi
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ RUN set -ex; \
66 \
77 apt-get update; \
88 apt-get install -y --no-install-recommends \
9- sudo \
109 rsync \
1110 bzip2 \
1211# For mail() support
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ sh /setup_msmtp.sh
4444
4545# ensure we have a logfile writeable by www-data
4646FRIENDICA_LOGFILE=${FRIENDICA_LOGFILE:-/ var/ www/ html/ friendica.log}
47- if sudo -u www-data test -w " $( dirname " $FRIENDICA_LOGFILE " ) " ; then
47+ if runuser --login www-data --command " test -w \ "$( dirname \ "$FRIENDICA_LOGFILE \ ") " ; then
4848 touch " $FRIENDICA_LOGFILE "
4949 chown www-data:www-data " $FRIENDICA_LOGFILE "
5050fi
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ sh /setup_msmtp.sh
4444
4545# ensure we have a logfile writeable by www-data
4646FRIENDICA_LOGFILE=${FRIENDICA_LOGFILE:-/ var/ www/ html/ friendica.log}
47- if sudo -u www-data test -w " $( dirname " $FRIENDICA_LOGFILE " ) " ; then
47+ if runuser --login www-data --command " test -w \ "$( dirname \ "$FRIENDICA_LOGFILE \ ") " ; then
4848 touch " $FRIENDICA_LOGFILE "
4949 chown www-data:www-data " $FRIENDICA_LOGFILE "
5050fi
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ RUN set -ex; \
66 \
77 apt-get update; \
88 apt-get install -y --no-install-recommends \
9- sudo \
109 rsync \
1110 bzip2 \
1211# For mail() support
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ sh /setup_msmtp.sh
4444
4545# ensure we have a logfile writeable by www-data
4646FRIENDICA_LOGFILE=${FRIENDICA_LOGFILE:-/ var/ www/ html/ friendica.log}
47- if sudo -u www-data test -w " $( dirname " $FRIENDICA_LOGFILE " ) " ; then
47+ if runuser --login www-data --command " test -w \ "$( dirname \ "$FRIENDICA_LOGFILE \ ") " ; then
4848 touch " $FRIENDICA_LOGFILE "
4949 chown www-data:www-data " $FRIENDICA_LOGFILE "
5050fi
You can’t perform that action at this time.
0 commit comments