Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
provision
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
provision
Commits
ec09f60b
Commit
ec09f60b
authored
Nov 24, 2010
by
anarcat
Committed by
anarcat
Nov 24, 2010
Browse files
Options
Downloads
Patches
Plain Diff
prompt for the db user and password, pass that insecurely to the backend
parent
bc578a2e
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
debian/aegir-provision.config
+3
-1
3 additions, 1 deletion
debian/aegir-provision.config
debian/aegir-provision.postinst
+8
-1
8 additions, 1 deletion
debian/aegir-provision.postinst
debian/aegir-provision.templates
+11
-0
11 additions, 0 deletions
debian/aegir-provision.templates
with
22 additions
and
2 deletions
debian/aegir-provision.config
+
3
−
1
View file @
ec09f60b
...
@@ -16,4 +16,6 @@ fi
...
@@ -16,4 +16,6 @@ fi
db_input
low
aegir
/
makefile
||
true
db_input
low
aegir
/
makefile
||
true
db_input
low
aegir
/
email
||
true
db_input
low
aegir
/
email
||
true
db_input
low
aegir
/
db_host
||
true
db_input
low
aegir
/
db_host
||
true
db_input
low
aegir
/
db_user
||
true
db_input
medium
aegir
/
db_password
||
true
db_go
db_go
This diff is collapsed.
Click to expand it.
debian/aegir-provision.postinst
+
8
−
1
View file @
ec09f60b
...
@@ -68,19 +68,26 @@ case "$1" in
...
@@ -68,19 +68,26 @@ case "$1" in
fi
fi
db_get
"aegir/db_host"
db_get
"aegir/db_host"
AEGIR_DB_HOST
=
"
$RET
"
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"
db_get
"aegir/email"
EMAIL
=
"
$RET
"
EMAIL
=
"
$RET
"
db_get
"aegir/makefile"
db_get
"aegir/makefile"
if
[
!
-z
"
$RET
"
]
;
then
if
[
!
-z
"
$RET
"
]
;
then
MAKEFILE
=
"--makefile='
$RET
'"
MAKEFILE
=
"--makefile='
$RET
'"
fi
fi
db_reset aegir/db_password
||
true
db_fset aegir/db_password
"seen"
"false"
||
true
db_go
db_stop
db_stop
if
[
-d
$VARLIB
/.drush/provision
]
;
then
if
[
-d
$VARLIB
/.drush/provision
]
;
then
echo
"existing provision in
$VARLIB
/.drush/provision detected, move away and try again"
echo
"existing provision in
$VARLIB
/.drush/provision detected, move away and try again"
exit
1
exit
1
fi
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
)
abort-upgrade|abort-remove|abort-deconfigure
)
...
...
This diff is collapsed.
Click to expand it.
debian/aegir-provision.templates
+
11
−
0
View file @
ec09f60b
...
@@ -13,6 +13,17 @@ Default: localhost
...
@@ -13,6 +13,17 @@ Default: localhost
Description: Database server hostname:
Description: Database server hostname:
This is the hostname at which the database server is available.
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
Template:aegir/email
Type: string
Type: string
Description: Main client email:
Description: Main client email:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment