Commit d2a04899 authored by Victor Nikulshin's avatar Victor Nikulshin
Browse files

Execute `drush make` in the correct directory

parent f80ec42a
Pipeline #2204 passed with stages
in 2 minutes and 5 seconds
...@@ -39,6 +39,7 @@ def make(action='install'): ...@@ -39,6 +39,7 @@ def make(action='install'):
abort('Aborting "drush {}" since there might be a risk of ' abort('Aborting "drush {}" since there might be a risk of '
'loosing local data.'.format(action)) 'loosing local data.'.format(action))
drupal = '{}/drupal'.format(env.workspace)
drush_opts = "--prepare-install " if action != 'update' else '' drush_opts = "--prepare-install " if action != 'update' else ''
# Update profile codebase # Update profile codebase
...@@ -57,9 +58,9 @@ def make(action='install'): ...@@ -57,9 +58,9 @@ def make(action='install'):
if env.get('always_use_pty', True): if env.get('always_use_pty', True):
drush_opts += " --working-copy --no-gitinfofile" drush_opts += " --working-copy --no-gitinfofile"
if not os.path.exists(env.site_root): if not os.path.exists(drupal):
local("mkdir {}".format(env.site_root)) local("mkdir {}".format(drupal))
with lcd(env.site_root): with lcd(drupal):
dk_run(env.services['php'], user='root', dk_run(env.services['php'], user='root',
cmd='chown -R {}:{} .'.format(env.local_userid, cmd='chown -R {}:{} .'.format(env.local_userid,
env.apache_userid)) env.apache_userid))
......
Markdown is supported
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