blob: 09e8972f99f6b98689efb4e8ce5d32abae9b9eab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/bash
# Dieters personal procedure, adds a bit on top of the official automatic procedure.
# TODO: implement this.
depend_procedure core automatic
# Check if we have all needed settings loaded from the profile
worker_runtime_settings () #TODO: add to a phase
{
if check_is_in svn $var_RUNTIME_PACKAGES
then
[ -z "$SVN_USERNAME" ] && ask_string "Please enter your svn username" && SVN_USERNAME=$ANSWER_STRING
[ -z "$SVN_PASSWORD" ] && ask_password svn #TODO: if user entered incorrect password, the install process will just fail..
[ -z "$SVN_BASE" ] && ask_string "What's the base path of your svn repo? (no ending /) " && SVN_BASE=$ANSWER_STRING
[ -z "$DEPLOY_CLASS" ] && ask_string "Which hostclass are you installing? (optional)" '' 0 && DEPLOY_CLASS=$ANSWER_STRING
SVN="svn --username $SVN_USERNAME --password $SVN_PASSWORD"
elif check_is_in moo $var_RUNTIME_PACKAGES
then
# Maybe more stuff later
true
fi
[ -z "$HOSTNAME" ] && ask_string "Hostname of target system?" &&
HOSTNAME=$ANSWER_STRING
return 0
}
|