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
5c0e77d6
Commit
5c0e77d6
authored
Mar 31, 2011
by
anarcat
Browse files
cleanup empty platforms on upgrade
parent
cc598189
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian/aegir-hostmaster.postinst
View file @
5c0e77d6
...
...
@@ -53,6 +53,14 @@ case "$1" in
echo
"upgrading the frontend from
$drupal_root
to
$NEW_PLATFORM
"
cd
"
$drupal_root
"
su
-s
/bin/sh aegir
-c
"drush hostmaster-migrate
$FLAGS
'
$site_uri
' '
$NEW_PLATFORM
'"
cd
$HOME
sites
=
`
ls
"
$drupal_root
/sites"
| egrep
-v
'^all|default$'
`
if
[
-z
"
$sites
"
]
;
then
echo
"backing up old platform to
$HOME
/backups/
$drupal_root
.tgz"
tar
-c
-z
-f
"
$HOME
/backups/
$drupal_root
.tgz"
"
$drupal_root
"
echo
"removing old platform from
$HOME
/
$drupal_root
"
rm
-rf
"
$HOME
/
$drupal_root
"
fi
fi
else
db_get
"aegir/site"
...
...
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