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