2
0
Fork 0
mirror of https://github.com/friendica/docker synced 2024-05-28 04:58:18 +02:00

Hotfix: wrong set parameter

This commit is contained in:
Philipp Holzer 2019-11-17 16:48:04 +01:00
parent 11817715db
commit f6c270f1bd
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
7 changed files with 21 additions and 7 deletions

View file

@ -3,7 +3,7 @@ set -eu
# run an command with the www-data user
run_as() {
set -- -eu -c "cd /var/www/html; $*"
set -- -c "cd /var/www/html; $*"
if [ "$(id -u)" -eq 0 ]; then
su - www-data -s /bin/sh "$@"
else
@ -105,6 +105,8 @@ setup_ssmtp() {
fi
}
run_as "echo 'test';"
# just check if we execute apache or php-fpm
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
installed_version="0.0.0.0"

View file

@ -3,7 +3,7 @@ set -eu
# run an command with the www-data user
run_as() {
set -- -eu -c "cd /var/www/html; $*"
set -- -c "cd /var/www/html; $*"
if [ "$(id -u)" -eq 0 ]; then
su - www-data -s /bin/sh "$@"
else
@ -105,6 +105,8 @@ setup_ssmtp() {
fi
}
run_as "echo 'test';"
# just check if we execute apache or php-fpm
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
installed_version="0.0.0.0"

View file

@ -3,7 +3,7 @@ set -eu
# run an command with the www-data user
run_as() {
set -- -eu -c "cd /var/www/html; $*"
set -- -c "cd /var/www/html; $*"
if [ "$(id -u)" -eq 0 ]; then
su - www-data -s /bin/sh "$@"
else
@ -105,6 +105,8 @@ setup_ssmtp() {
fi
}
run_as "echo 'test';"
# just check if we execute apache or php-fpm
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
installed_version="0.0.0.0"

View file

@ -3,7 +3,7 @@ set -eu
# run an command with the www-data user
run_as() {
set -- -eu -c "cd /var/www/html; $*"
set -- -c "cd /var/www/html; $*"
if [ "$(id -u)" -eq 0 ]; then
su - www-data -s /bin/sh "$@"
else
@ -105,6 +105,8 @@ setup_ssmtp() {
fi
}
run_as "echo 'test';"
# just check if we execute apache or php-fpm
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
installed_version="0.0.0.0"

View file

@ -3,7 +3,7 @@ set -eu
# run an command with the www-data user
run_as() {
set -- -eu -c "cd /var/www/html; $*"
set -- -c "cd /var/www/html; $*"
if [ "$(id -u)" -eq 0 ]; then
su - www-data -s /bin/sh "$@"
else
@ -105,6 +105,8 @@ setup_ssmtp() {
fi
}
run_as "echo 'test';"
# just check if we execute apache or php-fpm
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
installed_version="0.0.0.0"

View file

@ -3,7 +3,7 @@ set -eu
# run an command with the www-data user
run_as() {
set -- -eu -c "cd /var/www/html; $*"
set -- -c "cd /var/www/html; $*"
if [ "$(id -u)" -eq 0 ]; then
su - www-data -s /bin/sh "$@"
else
@ -105,6 +105,8 @@ setup_ssmtp() {
fi
}
run_as "echo 'test';"
# just check if we execute apache or php-fpm
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
installed_version="0.0.0.0"

View file

@ -3,7 +3,7 @@ set -eu
# run an command with the www-data user
run_as() {
set -- -eu -c "cd /var/www/html; $*"
set -- -c "cd /var/www/html; $*"
if [ "$(id -u)" -eq 0 ]; then
su - www-data -s /bin/sh "$@"
else
@ -105,6 +105,8 @@ setup_ssmtp() {
fi
}
run_as "echo 'test';"
# just check if we execute apache or php-fpm
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
installed_version="0.0.0.0"