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
6ad3ff69
Commit
6ad3ff69
authored
Mar 31, 2011
by
anarcat
Browse files
abort earlier if provision is already installed
parent
caa68306
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian/aegir-provision.postinst
View file @
6ad3ff69
...
...
@@ -24,6 +24,11 @@ VARLIB="/var/aegir"
case
"
$1
"
in
configure
)
if
[
-d
$VARLIB
/.drush/provision
]
;
then
echo
"existing provision in
$VARLIB
/.drush/provision detected, move away and try again"
exit
1
fi
# add a aegir user if one does not already exist
if
!
getent passwd aegir
>
/dev/null
;
then
echo
"adding aegir user..."
...
...
@@ -44,11 +49,6 @@ case "$1" in
echo
"copy content of /usr/share/doc/aegir-provision/examples/examples.sudoers into /etc/sudoers for aegir to run properly"
fi
if
[
-d
$VARLIB
/.drush/provision
]
;
then
echo
"existing provision in
$VARLIB
/.drush/provision detected, move away and try again"
exit
1
fi
# fix permissions on installed directories
chown
aegir:aegir
"
$VARLIB
"
# make sure we have apache configs settled in, for remote headless aegir servers
...
...
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