Commit ad1ddc7d authored by Ernesto Rodriguez Ortiz's avatar Ernesto Rodriguez Ortiz
Browse files

Fix bug in the creation of the logs dir.

Use the root user from the container to create the dir and then
change the group and owner so www-data can write.
parent 98550278
Pipeline #1921 passed with stages
in 1 minute and 20 seconds
......@@ -175,7 +175,8 @@ def fix_files_owner_and_permissions():
service =['php']
dk_run(service, user='root',
cmd='chown -R {}:{} .'.format(env.local_userid, env.apache_userid))
cmd='chown -R {}:{} ../../*'.format(env.local_userid,
dk_run(service, user='root',
cmd="find . -type d -exec chmod u=rwx,g=rx,o= '{}' \;")
dk_run(service, user='root',
......@@ -75,7 +75,12 @@ def run(pattern='~@wip&&~@disabled&&~@test'):
service =['php']
workspace = env.code_workspace
dk_run(service, 'mkdir -p {}/logs/behat'.format(workspace))
dk_run(service, user='root',
cmd='mkdir -p {}/logs/behat'.format(workspace))
dk_run(service, user='root',
cmd='chown -R {}:{} {}/logs/behat'.format(env.apache_userid,
if not os.path.exists('../tests/behat/bin/behat'):
if not os.path.exists('{}/tests/behat/behat.yml'.format(workspace)):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment