Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
provision
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
provision
Commits
5ee0b041
Commit
5ee0b041
authored
Feb 17, 2019
by
helmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quote shuffle
parent
c6398e8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
debian/aegir3-hostmaster.postinst
debian/aegir3-hostmaster.postinst
+6
-6
No files found.
debian/aegir3-hostmaster.postinst
View file @
5ee0b041
...
...
@@ -71,10 +71,10 @@ case "$1" in
chown
aegir:aegir
"
$AEGIRHOME
"
"
$AEGIRHOME
/config"
"
$AEGIRHOME
/config/
$WEBSERVER
.conf"
# flush the drush cache to find new commands
su
-s
/bin/sh aegir
-c
'$DRUSH_PATH cache-clear drush'
su
-s
/bin/sh aegir
-c
"
$DRUSH_PATH
cache-clear drush"
site_uri
=
`
su
-s
/bin/sh aegir
-c
'$DRUSH_PATH @hostmaster status --fields="uri" --field-labels=0 2>/dev/null | tr "\n" " " | sed -e "s/^[[:space:]]*//g" -e "s/[[:space:]]*\$//g"'
`
drupal_root
=
`
su
-s
/bin/sh aegir
-c
'$DRUSH_PATH @hostmaster status --fields="root" --field-labels=0 2>/dev/null | tr "\n" " " | sed -e "s/^[[:space:]]*//g" -e "s/[[:space:]]*\$//g"'
`
site_uri
=
`
su
-s
/bin/sh aegir
-c
"
$DRUSH_PATH
@hostmaster status --fields='uri' --field-labels=0 2>/dev/null | tr '
\n
' ' ' | sed -e 's/^[[:space:]]*//g' -e 's/[[:space:]]*
\$
//g'"
`
drupal_root
=
`
su
-s
/bin/sh aegir
-c
"
$DRUSH_PATH
@hostmaster status --fields='root' --field-labels=0 2>/dev/null | tr '
\n
' ' ' | sed -e 's/^[[:space:]]*//g' -e 's/[[:space:]]*
\$
//g'"
`
if
[
-d
"
$drupal_root
"
]
;
then
# upgrade
...
...
@@ -98,7 +98,7 @@ case "$1" in
echo
"it seems to be the same version as the one we're trying to install, not upgrading"
else
echo
"upgrading the frontend from
$drupal_root
to
$NEW_PLATFORM
"
if
su
-s
/bin/sh aegir
-c
'$DRUSH_PATH @hostmaster pm-list --status=enabled --pipe'
|
grep
-q
hosting_queued
;
then
if
su
-s
/bin/sh aegir
-c
"
$DRUSH_PATH
@hostmaster pm-list --status=enabled --pipe"
|
grep
-q
hosting_queued
;
then
service hosting-queued stop
fi
cd
"
$drupal_root
"
...
...
@@ -186,11 +186,11 @@ case "$1" in
}
EOF
# flush the drush cache to find new commands
su
-s
/bin/sh aegir
-c
'$DRUSH_PATH cache-clear drush'
su
-s
/bin/sh aegir
-c
"
$DRUSH_PATH
cache-clear drush"
# on new installs, we default to having the daemon enabled
echo
'Enabling hosting-queued daemon'
su
-s
/bin/sh aegir
-c
'$DRUSH_PATH @hostmaster pm-enable -y hosting_queued'
su
-s
/bin/sh aegir
-c
"
$DRUSH_PATH
@hostmaster pm-enable -y hosting_queued"
service hosting-queued start
if
[
-f
/bin/systemctl
]
;
then
# There must be a better way, but we're trying to stay compatible with Debian Wheezy and Jessie.
...
...
Write
Preview
Markdown
is supported
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