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
ec09f60b
Commit
ec09f60b
authored
Nov 24, 2010
by
anarcat
Committed by
anarcat
Nov 24, 2010
Browse files
prompt for the db user and password, pass that insecurely to the backend
parent
bc578a2e
Changes
3
Hide whitespace changes
Inline
Side-by-side
debian/aegir-provision.config
View file @
ec09f60b
...
...
@@ -16,4 +16,6 @@ fi
db_input
low
aegir
/
makefile
||
true
db_input
low
aegir
/
email
||
true
db_input
low
aegir
/
db_host
||
true
db_go
\ No newline at end of file
db_input
low
aegir
/
db_user
||
true
db_input
medium
aegir
/
db_password
||
true
db_go
debian/aegir-provision.postinst
View file @
ec09f60b
...
...
@@ -68,19 +68,26 @@ case "$1" in
fi
db_get
"aegir/db_host"
AEGIR_DB_HOST
=
"
$RET
"
db_get
"aegir/db_user"
AEGIR_DB_USER
=
"
$RET
"
db_get
"aegir/db_password"
AEGIR_DB_PASS
=
"
$RET
"
db_get
"aegir/email"
EMAIL
=
"
$RET
"
db_get
"aegir/makefile"
if
[
!
-z
"
$RET
"
]
;
then
MAKEFILE
=
"--makefile='
$RET
'"
fi
db_reset aegir/db_password
||
true
db_fset aegir/db_password
"seen"
"false"
||
true
db_go
db_stop
if
[
-d
$VARLIB
/.drush/provision
]
;
then
echo
"existing provision in
$VARLIB
/.drush/provision detected, move away and try again"
exit
1
fi
su aegir
-c
"drush hostmaster-install --aegir_db_host='
$AEGIR_DB_HOST
' --client_email='
$EMAIL
'
$MAKEFILE
$SITE
"
su aegir
-c
"drush hostmaster-install --aegir_db_host='
$AEGIR_DB_HOST
'
--aegir_db_user='
$AEGIR_DB_USER
' --aegir_db_pass='
$AEGIR_DB_PASS
'
--client_email='
$EMAIL
'
$MAKEFILE
$SITE
"
;;
abort-upgrade|abort-remove|abort-deconfigure
)
...
...
debian/aegir-provision.templates
View file @
ec09f60b
...
...
@@ -13,6 +13,17 @@ Default: localhost
Description: Database server hostname:
This is the hostname at which the database server is available.
Template:aegir/db_user
Type: string
Default: root
Description: Database server user:
This should be a root MySQL user.
Template:aegir/db_password
Type: password
Description: Database server password:
The password for the root MySQL user.
Template:aegir/email
Type: string
Description: Main client email:
...
...
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