Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Drupal
drupalizer
Commits
d2a04899
Commit
d2a04899
authored
Dec 27, 2016
by
Victor Nikulshin
Browse files
Execute `drush make` in the correct directory
parent
f80ec42a
Pipeline
#2204
passed with stages
in 2 minutes and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
drush.py
View file @
d2a04899
...
@@ -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
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment