Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Warden
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pavel Valach
Warden
Commits
53e78ebb
Commit
53e78ebb
authored
10 years ago
by
Tomáš Plesník
Browse files
Options
Downloads
Patches
Plain Diff
pridan parametr -e pro nastaveni kontaktniho mailu na spravce Warden serveru
parent
ba0dfe0f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/warden-server/sh/install.sh
+9
-2
9 additions, 2 deletions
src/warden-server/sh/install.sh
with
9 additions
and
2 deletions
src/warden-server/sh/install.sh
+
9
−
2
View file @
53e78ebb
...
@@ -19,11 +19,12 @@ usage()
...
@@ -19,11 +19,12 @@ usage()
echo
"-k <ssl_key_file> path to SSL certificate key file"
echo
"-k <ssl_key_file> path to SSL certificate key file"
echo
"-c <ssl_cert_file> path to SSL certificate file"
echo
"-c <ssl_cert_file> path to SSL certificate file"
echo
"-a <ssl_ca_file> path to CA certificate file"
echo
"-a <ssl_ca_file> path to CA certificate file"
echo
"-e <e-mail address> e-mail address to Warden server administrator"
echo
"-s <directory> directory for symlinks to Warden server control scripts (optional)"
echo
"-s <directory> directory for symlinks to Warden server control scripts (optional)"
echo
"-h print this help"
echo
"-h print this help"
echo
"-V print script version number and exit"
echo
"-V print script version number and exit"
echo
echo
echo
"Example:
$
./
${
0
##*/
}
-d /opt/warden-server -k /etc/ssl/private/server.key -c /etc/ssl/certs/server.pem -a /etc/ssl/certs/tcs-ca-bundle.pem -s /usr/local/bin"
echo
"Example:
$
./
${
0
##*/
}
-d /opt/warden-server -k /etc/ssl/private/server.key -c /etc/ssl/certs/server.pem -a /etc/ssl/certs/tcs-ca-bundle.pem
-e admin@domain.com
-s /usr/local/bin"
echo
echo
echo
"For more information about installation process, see README file (section Installation)."
echo
"For more information about installation process, see README file (section Installation)."
echo
echo
...
@@ -87,6 +88,10 @@ paramsChck()
...
@@ -87,6 +88,10 @@ paramsChck()
echo
"Parameter -a <ssl_ca_file> is not set!"
echo
"Parameter -a <ssl_ca_file> is not set!"
exit
1
exit
1
fi
fi
if
[
-z
"
$contact
"
]
;
then
echo
"Parameter -e <e-mail address> is not set!"
exit
1
fi
}
}
...
@@ -185,12 +190,13 @@ createSymlinks()
...
@@ -185,12 +190,13 @@ createSymlinks()
# MAIN
# MAIN
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# read input
# read input
while
getopts
"d:k:c:a:s:Vh"
options
;
do
while
getopts
"d:k:c:a:
e:
s:Vh"
options
;
do
case
"
$options
"
in
case
"
$options
"
in
d
)
basedir
=
"
$OPTARG
"
;;
d
)
basedir
=
"
$OPTARG
"
;;
k
)
key_file
=
"
$OPTARG
"
;;
k
)
key_file
=
"
$OPTARG
"
;;
c
)
cert_file
=
"
$OPTARG
"
;;
c
)
cert_file
=
"
$OPTARG
"
;;
a
)
ca_file
=
"
$OPTARG
"
;;
a
)
ca_file
=
"
$OPTARG
"
;;
e
)
contact
=
"
$OPTARG
"
;;
s
)
symbin
=
"
$OPTARG
"
;;
s
)
symbin
=
"
$OPTARG
"
;;
h
)
usage
;;
h
)
usage
;;
V
)
version
;;
V
)
version
;;
...
@@ -263,6 +269,7 @@ doTemplate \
...
@@ -263,6 +269,7 @@ doTemplate \
echo
-n
"Creating Warden Watchdog configuration file ... "
echo
-n
"Creating Warden Watchdog configuration file ... "
doTemplate
\
doTemplate
\
_HOSTNAME_
"
$hostname
"
\
_HOSTNAME_
"
$hostname
"
\
_CONTACT_
"
$contact
"
\
<
$watchdog_conf_tmpl
\
<
$watchdog_conf_tmpl
\
>
$watchdog_conf
&&
echo
"OK"
||
errClean
>
$watchdog_conf
&&
echo
"OK"
||
errClean
...
...
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