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
7098ef16
Commit
7098ef16
authored
13 years ago
by
Tomáš Plesník
Browse files
Options
Downloads
Patches
Plain Diff
provedena revize kodu
parent
d4647723
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/warden-client/sh/install.sh
+20
-18
20 additions, 18 deletions
src/warden-client/sh/install.sh
with
20 additions
and
18 deletions
src/warden-client/sh/install.sh
+
20
−
18
View file @
7098ef16
...
...
@@ -38,21 +38,21 @@ VERSION="1.1.0"
#-------------------------------------------------------------------------------
usage
()
{
echo
"Usage:
`
basename
$0
`
[-d <directory>] [-u <user>] [-k <ssl_key_file>] [-c <ssl_cert_file>] [-a <ssl_ca_file>] [-hV]"
echo
"-d <directory> installation directory (default: /opt)"
echo
"-u <user> owner of warden client package (user for running detection scripts)"
echo
"-k <ssl_key_file> path to SSL certificate key file"
echo
"-c <ssl_cert_file> path to SSL certificate file"
echo
"-a <ssl_ca_file> path to CA certificate file"
echo
"-h print this help"
echo
"-V print script version number and exit"
echo
echo
"Example: ./
`
basename
$0
`
-d /opt -u detector -k /etc/ssl/private/client.key -c /etc/ssl/certs/client.pem -a /etc/ssl/certs/tcs-ca-bundle.pem"
echo
echo
"Note: You must be root for running this script."
echo
" For more information about installation process, see README file (section Installation)."
echo
exit
0
echo
"Usage:
`
basename
$0
`
[-d <directory>] [-u <user>] [-k <ssl_key_file>] [-c <ssl_cert_file>] [-a <ssl_ca_file>] [-hV]"
echo
"-d <directory> installation directory (default: /opt)"
echo
"-u <user> owner of warden client package (user for running detection scripts)"
echo
"-k <ssl_key_file> path to SSL certificate key file"
echo
"-c <ssl_cert_file> path to SSL certificate file"
echo
"-a <ssl_ca_file> path to CA certificate file"
echo
"-h print this help"
echo
"-V print script version number and exit"
echo
echo
"Example: ./
`
basename
$0
`
-d /opt -u detector -k /etc/ssl/private/client.key -c /etc/ssl/certs/client.pem -a /etc/ssl/certs/tcs-ca-bundle.pem"
echo
echo
"Note: You must be root for running this script."
echo
" For more information about installation process, see README file (section Installation)."
echo
exit
0
}
...
...
@@ -67,6 +67,7 @@ err()
{
echo
"FAILED!"
cat
$err
rm
-rf
$err
echo
echo
"Installation FAILED!!!"
exit
1
...
...
@@ -119,7 +120,7 @@ params_chck()
{
if
[
-z
$prefix
]
;
then
prefix
=
/opt
echo
"Warning: parameter -d <directory> is not set - default installation directory is
/opt
!"
echo
"Warning: parameter -d <directory> is not set - default installation directory is
$prefix
!"
fi
if
[
-z
$user
]
;
then
echo
"Parameter -u <user> is not set!"
...
...
@@ -148,6 +149,7 @@ perl_chck()
echo
"OK"
else
echo
"FAILED!"
echo
"Error: Perl interpreter is not installed!"
exit
1
fi
}
...
...
@@ -162,7 +164,7 @@ modules_chck()
if
[
$ret_val
-eq
0
]
;
then
echo
"OK"
else
err
err
fi
done
}
...
...
@@ -184,13 +186,13 @@ installation_dir_chck()
make_warden_dir
()
{
echo
-n
"Making warden client directory ... "
cp
CHANGELOG INSTALL LICENSE README
"
$client_path
/doc"
cp
-R
./warden-client
$prefix
2>
$err
;
ret_val
=
`
echo
$?
`
if
[
$ret_val
-eq
0
]
;
then
echo
"OK"
else
err_clean
fi
cp
-u
CHANGELOG INSTALL LICENSE README
"
$client_path
/doc"
}
...
...
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