mirror of
https://github.com/friendica/docker
synced 2025-01-04 04:38:21 +01:00
Fix missing php executable
This commit is contained in:
parent
46ec7f08db
commit
39ef8ac587
10 changed files with 20 additions and 10 deletions
|
@ -3,8 +3,9 @@ set -eu
|
|||
|
||||
# run an command with the www-data user
|
||||
run_as() {
|
||||
set -- -c "cd /var/www/html; $*"
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
su -p www-data -s /bin/sh -c "$1"
|
||||
su - www-data -s /bin/sh -c "export PHP_MEMORY_LIMIT=${PHP_MEMORY_LIMIT}; export PHP_UPLOAD_LIMIT=${PHP_UPLOAD_LIMIT}; $1"
|
||||
else
|
||||
sh -c "$1"
|
||||
fi
|
||||
|
|
|
@ -3,8 +3,9 @@ set -eu
|
|||
|
||||
# run an command with the www-data user
|
||||
run_as() {
|
||||
set -- -c "cd /var/www/html; $*"
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
su -p www-data -s /bin/sh -c "$1"
|
||||
su - www-data -s /bin/sh -c "export PHP_MEMORY_LIMIT=${PHP_MEMORY_LIMIT}; export PHP_UPLOAD_LIMIT=${PHP_UPLOAD_LIMIT}; $1"
|
||||
else
|
||||
sh -c "$1"
|
||||
fi
|
||||
|
|
|
@ -3,8 +3,9 @@ set -eu
|
|||
|
||||
# run an command with the www-data user
|
||||
run_as() {
|
||||
set -- -c "cd /var/www/html; $*"
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
su -p www-data -s /bin/sh -c "$1"
|
||||
su - www-data -s /bin/sh -c "export PHP_MEMORY_LIMIT=${PHP_MEMORY_LIMIT}; export PHP_UPLOAD_LIMIT=${PHP_UPLOAD_LIMIT}; $1"
|
||||
else
|
||||
sh -c "$1"
|
||||
fi
|
||||
|
|
|
@ -3,8 +3,9 @@ set -eu
|
|||
|
||||
# run an command with the www-data user
|
||||
run_as() {
|
||||
set -- -c "cd /var/www/html; $*"
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
su -p www-data -s /bin/sh -c "$1"
|
||||
su - www-data -s /bin/sh -c "export PHP_MEMORY_LIMIT=${PHP_MEMORY_LIMIT}; export PHP_UPLOAD_LIMIT=${PHP_UPLOAD_LIMIT}; $1"
|
||||
else
|
||||
sh -c "$1"
|
||||
fi
|
||||
|
|
|
@ -3,8 +3,9 @@ set -eu
|
|||
|
||||
# run an command with the www-data user
|
||||
run_as() {
|
||||
set -- -c "cd /var/www/html; $*"
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
su -p www-data -s /bin/sh -c "$1"
|
||||
su - www-data -s /bin/sh -c "export PHP_MEMORY_LIMIT=${PHP_MEMORY_LIMIT}; export PHP_UPLOAD_LIMIT=${PHP_UPLOAD_LIMIT}; $1"
|
||||
else
|
||||
sh -c "$1"
|
||||
fi
|
||||
|
|
|
@ -3,8 +3,9 @@ set -eu
|
|||
|
||||
# run an command with the www-data user
|
||||
run_as() {
|
||||
set -- -c "cd /var/www/html; $*"
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
su -p www-data -s /bin/sh -c "$1"
|
||||
su - www-data -s /bin/sh -c "export PHP_MEMORY_LIMIT=${PHP_MEMORY_LIMIT}; export PHP_UPLOAD_LIMIT=${PHP_UPLOAD_LIMIT}; $1"
|
||||
else
|
||||
sh -c "$1"
|
||||
fi
|
||||
|
|
|
@ -3,8 +3,9 @@ set -eu
|
|||
|
||||
# run an command with the www-data user
|
||||
run_as() {
|
||||
set -- -c "cd /var/www/html; $*"
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
su -p www-data -s /bin/sh -c "$1"
|
||||
su - www-data -s /bin/sh -c "export PHP_MEMORY_LIMIT=${PHP_MEMORY_LIMIT}; export PHP_UPLOAD_LIMIT=${PHP_UPLOAD_LIMIT}; $1"
|
||||
else
|
||||
sh -c "$1"
|
||||
fi
|
||||
|
|
|
@ -3,8 +3,9 @@ set -eu
|
|||
|
||||
# run an command with the www-data user
|
||||
run_as() {
|
||||
set -- -c "cd /var/www/html; $*"
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
su -p www-data -s /bin/sh -c "$1"
|
||||
su - www-data -s /bin/sh -c "export PHP_MEMORY_LIMIT=${PHP_MEMORY_LIMIT}; export PHP_UPLOAD_LIMIT=${PHP_UPLOAD_LIMIT}; $1"
|
||||
else
|
||||
sh -c "$1"
|
||||
fi
|
||||
|
|
|
@ -3,8 +3,9 @@ set -eu
|
|||
|
||||
# run an command with the www-data user
|
||||
run_as() {
|
||||
set -- -c "cd /var/www/html; $*"
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
su -p www-data -s /bin/sh -c "$1"
|
||||
su - www-data -s /bin/sh -c "export PHP_MEMORY_LIMIT=${PHP_MEMORY_LIMIT}; export PHP_UPLOAD_LIMIT=${PHP_UPLOAD_LIMIT}; $1"
|
||||
else
|
||||
sh -c "$1"
|
||||
fi
|
||||
|
|
|
@ -3,8 +3,9 @@ set -eu
|
|||
|
||||
# run an command with the www-data user
|
||||
run_as() {
|
||||
set -- -c "cd /var/www/html; $*"
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
su -p www-data -s /bin/sh -c "$1"
|
||||
su - www-data -s /bin/sh -c "export PHP_MEMORY_LIMIT=${PHP_MEMORY_LIMIT}; export PHP_UPLOAD_LIMIT=${PHP_UPLOAD_LIMIT}; $1"
|
||||
else
|
||||
sh -c "$1"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue