Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
provision
Commits
72c5af7c
Commit
72c5af7c
authored
Nov 25, 2010
by
anarcat
Committed by
anarcat
Nov 25, 2010
Browse files
clarify information given to the user on existing installs
parent
2a5016e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian/aegir-provision.postinst
View file @
72c5af7c
...
...
@@ -71,16 +71,15 @@ case "$1" in
TEMPFILE
=
`
tempfile
`
su aegir
-c
'drush @hostmaster status'
>>
$TEMPFILE
||
true
if
grep
-q
'Drupal bootstrap.*Successful'
$TEMPFILE
;
then
# there's already an install
db_stop
echo
"Aegir frontend (@hostmaster) site detected"
SITE
=
`
grep
URI
$TEMPFILE
|
sed
-e
's/^.*://'
`
OLD_PLATFORM
=
`
grep
'Drupal root'
$TEMPFILE
|
sed
-e
's/^.*:[[:space:]]*//;s/[[:space:]]*$//'
`
NEW_PLATFORM
=
"
$VARLIB
/hostmaster-
$VERSION
"
if
[
-d
"
$NEW_PLATFORM
"
]
;
then
# this is not an upgrade, do nothing
db_stop
echo
"this is not an upgrade, just updated the backend"
echo
"it seems to be the same version as the one we're trying to install, not upgrading"
else
# this is an upgrade
echo
"upgrading the frontend from
$OLD_PLATFORM
to
$NEW_PLATFORM
"
cd
"
$OLD_PLATFORM
"
su aegir
-c
"drush hostmaster-migrate --yes '
$SITE
' '
$NEW_PLATFORM
'"
fi
...
...
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