File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -149,6 +149,7 @@ function prepareDocker() {
149149
150150 docker exec $NEXTCLOUD_LOCAL_CONTAINER mkdir /nextcloud
151151 docker cp - $NEXTCLOUD_LOCAL_CONTAINER :/nextcloud/ < " $NEXTCLOUD_LOCAL_TAR "
152+ docker exec $NEXTCLOUD_LOCAL_CONTAINER chown -R www-data:www-data /nextcloud
152153
153154 # Database options are needed only when a database other than SQLite is
154155 # used.
@@ -158,7 +159,7 @@ function prepareDocker() {
158159 fi
159160
160161 echo " Installing Nextcloud in the container"
161- docker exec $NEXTCLOUD_LOCAL_CONTAINER bash -c " cd nextcloud && php occ maintenance:install --admin-pass=admin $NEXTCLOUD_LOCAL_CONTAINER_INSTALL_DATABASE_OPTIONS "
162+ docker exec --user www-data $NEXTCLOUD_LOCAL_CONTAINER bash -c " cd nextcloud && php occ maintenance:install --admin-pass=admin $NEXTCLOUD_LOCAL_CONTAINER_INSTALL_DATABASE_OPTIONS "
162163}
163164
164165# Removes/stops temporal elements created/started by this script.
@@ -247,4 +248,4 @@ prepareDocker
247248
248249echo " Running tests"
249250# --tty is needed to get colourful output.
250- docker exec --tty $NEXTCLOUD_LOCAL_CONTAINER bash -c " cd nextcloud/build/integration && ./run.sh $SCENARIO_TO_RUN "
251+ docker exec --tty --user www-data $NEXTCLOUD_LOCAL_CONTAINER bash -c " cd nextcloud/build/integration && ./run.sh $SCENARIO_TO_RUN "
You can’t perform that action at this time.
0 commit comments