mirror of
https://github.com/nextcloud/docker.git
synced 2025-04-20 02:46:10 +02:00
Merge 42746dc18c
into 402d9424c5
This commit is contained in:
commit
c102e5a484
2 changed files with 6 additions and 2 deletions
|
@ -13,7 +13,9 @@ function directory_empty() {
|
|||
|
||||
function run_as() {
|
||||
if [[ $EUID -eq 0 ]]; then
|
||||
su - www-data -s /bin/bash -c "$1"
|
||||
HOME="/var/www"
|
||||
su - www-data -p -s /bin/bash -c "$1"
|
||||
HOME="/root"
|
||||
else
|
||||
bash -c "$1"
|
||||
fi
|
||||
|
|
|
@ -13,7 +13,9 @@ function directory_empty() {
|
|||
|
||||
function run_as() {
|
||||
if [[ $EUID -eq 0 ]]; then
|
||||
su - www-data -s /bin/bash -c "$1"
|
||||
HOME="/var/www"
|
||||
su - www-data -p -s /bin/bash -c "$1"
|
||||
HOME="/root"
|
||||
else
|
||||
bash -c "$1"
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue