Skip to content
GitLab
About GitLab
GitLab: the DevOps platform
Explore GitLab
Install GitLab
How GitLab compares
Get started
GitLab docs
GitLab Learn
Pricing
Talk to an expert
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Projects
Groups
Snippets
Sign up now
Login
Sign in
Toggle navigation
Menu
Open sidebar
project
provision
Commits
45d40cda
Commit
45d40cda
authored
Jul 19, 2015
by
Herman van Rink
Browse files
Fix debian upgrade code to match Drush 6
parent
0fecccec
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian/aegir3-hostmaster.postinst
View file @
45d40cda
...
...
@@ -57,12 +57,13 @@ case "$1" in
# flush the drush cache to find new commands
su
-s
/bin/sh aegir
-c
'drush cc drush'
TEMPFILE
=
`
tempfile
`
su
-s
/bin/sh aegir
-c
'drush --pipe @hostmaster status 2>/dev/null | egrep "site_uri|drupal_root"'
>>
$TEMPFILE
||
true
if
grep
-q
'site_uri'
$TEMPFILE
;
then
site_uri
=
`
drush @hostmaster status
--fields
=
"uri"
--field-labels
=
0 |
sed
-e
's/^[[:space:]]*//g'
-e
's/[[:space:]]*\$//g'
`
drupal_root
=
`
drush @hostmaster status
--fields
=
"root"
--field-labels
=
0 |
sed
-e
's/^[[:space:]]*//g'
-e
's/[[:space:]]*\$//g'
`
if
[
-n
$drupal_root
]
;
then
# upgrade
db_stop
.
$TEMPFILE
echo
"Aegir frontend (@hostmaster) site detected in
$drupal_root
"
# make those paths canonical to make sure we can compare correctly
NEW_PLATFORM
=
`
readlink
-f
"
$AEGIRHOME
/hostmaster-
$VERSION
"
`
...
...
@@ -130,7 +131,6 @@ EOF
su
-s
/bin/sh aegir
-c
'drush @hostmaster pm-enable -y hosting_queued'
service hosting-queued start
fi
rm
-f
$TEMPFILE
case
$WEBSERVER
in
apache
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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