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
1573b625
Commit
1573b625
authored
12 years ago
by
Jan Soukal
Browse files
Options
Downloads
Patches
Plain Diff
zmeny verze 2.1 zohledneny do install.sh. Zmena nakladani s certifikaty a klici.
parent
2c214e7c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/warden-client/doc/README
+1
-1
1 addition, 1 deletion
src/warden-client/doc/README
src/warden-client/sh/install.sh
+18
-20
18 additions, 20 deletions
src/warden-client/sh/install.sh
with
19 additions
and
21 deletions
src/warden-client/doc/README
+
1
−
1
View file @
1573b625
...
@@ -63,7 +63,7 @@ B. Installation Dependencies
...
@@ -63,7 +63,7 @@ B. Installation Dependencies
SOAP::Transport::HTTP >= 0.712
SOAP::Transport::HTTP >= 0.712
FindBin >= 1.50
FindBin >= 1.50
DateTime >= 0.61
DateTime >= 0.61
Carp >= 1.11
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
C. Installation (First installation of the Warden client package)
C. Installation (First installation of the Warden client package)
...
...
This diff is collapsed.
Click to expand it.
src/warden-client/sh/install.sh
+
18
−
20
View file @
1573b625
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
# Use of this source is governed by a BSD-style license, see LICENSE file.
# Use of this source is governed by a BSD-style license, see LICENSE file.
VERSION
=
"2.
0
"
VERSION
=
"2.
1
"
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# FUNCTIONS
# FUNCTIONS
...
@@ -139,40 +139,40 @@ modules_chck()
...
@@ -139,40 +139,40 @@ modules_chck()
make_warden_dir
()
make_warden_dir
()
{
{
echo
-n
"Creating warden client directory ... "
echo
-n
"Creating warden client directory ... "
test
-d
$prefix
||
mkdir
-p
$
prefix
test
-d
$prefix
||
mkdir
-p
prefix
if
cp
-R
${
dirname
}
/warden-client
$prefix
2>
$err
;
then
if
cp
-R
${
dirname
}
/warden-client
$prefix
2>
$err
;
then
echo
"OK"
echo
"OK"
else
else
err_clean
err_clean
fi
fi
files
=(
CHANGELOG INSTALL LICENSE README README.cesnet
)
files
=(
CHANGELOG INSTALL LICENSE README README.cesnet
)
for
file
in
${
files
[@]
}
;
for
file
in
${
files
[@]
}
;
do
do
cp
${
dirname
}
/
$file
${
client_path
}
/doc
cp
${
dirname
}
/
warden-client/doc/
$file
${
client_path
}
/doc
done
done
cp
${
dirname
}
/uninstall.sh
$client_path
cp
${
dirname
}
/uninstall.sh
$
{
client_path
}
/sh
}
}
c
opy
_key
()
c
heck
_key
()
{
{
echo
-n
"C
opy
ing certificate key file ... "
echo
-n
"C
heck
ing certificate key file ... "
if
cp
$key
$etc
2>
$err
;
then
if
su
${
user
}
-c
"test -r
${
key
}
"
2>
$err
;
then
echo
"OK"
echo
"OK"
else
else
e
rr_clean
e
cho
"Warning: certificate key file is not readable by user
${
user
}
!"
fi
fi
}
}
c
opy
_cert
()
c
heck
_cert
()
{
{
echo
-n
"C
opy
ing certificate file ... "
echo
-n
"C
heck
ing certificate file ... "
if
cp
$cert
$etc
2>
$err
;
then
if
su
${
user
}
-c
"test -r
${
key
}
"
2>
$err
;
then
echo
"OK"
echo
"OK"
else
else
e
rr_clean
e
cho
"Warning: certificate file is not readable by user
${
user
}
!"
fi
fi
}
}
...
@@ -192,12 +192,12 @@ make_conf_file()
...
@@ -192,12 +192,12 @@ make_conf_file()
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# SSL_KEY_FILE - path to client SSL certificate key file
# SSL_KEY_FILE - path to client SSL certificate key file
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
\$
SSL_KEY_FILE =
\"
${
etc
}
/
${
key_file
}
\"
;
\$
SSL_KEY_FILE =
\"
${
key
}
\"
;
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# SSL_CERT_FILE - path to client SSL certificate file
# SSL_CERT_FILE - path to client SSL certificate file
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
\$
SSL_CERT_FILE =
\"
${
etc
}
/
${
cert_file
}
\"
;
\$
SSL_CERT_FILE =
\"
${
cert
}
\"
;
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# SSL_CA_FILE - path to CA certificate file
# SSL_CA_FILE - path to CA certificate file
...
@@ -217,7 +217,6 @@ change_permissions()
...
@@ -217,7 +217,6 @@ change_permissions()
{
{
echo
-n
"Changing permissions to installed package ... "
echo
-n
"Changing permissions to installed package ... "
chown
-R
$user
:
$client_path
2>
$err
||
err_clean
chown
-R
$user
:
$client_path
2>
$err
||
err_clean
chmod
400
${
etc
}
/
$key_file
${
etc
}
/
$cert_file
||
err_clean
chmod
644
${
etc
}
/package_version
||
err_clean
chmod
644
${
etc
}
/package_version
||
err_clean
if
chmod
600
$conf_file
;
then
if
chmod
600
$conf_file
;
then
echo
"OK"
echo
"OK"
...
@@ -233,8 +232,7 @@ change_permissions()
...
@@ -233,8 +232,7 @@ change_permissions()
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# list of used Perl modules
# list of used Perl modules
modules
=(
SOAP::Lite IO::Socket::SSL SOAP::Transport::HTTP FindBin DateTime
)
modules
=(
SOAP::Lite IO::Socket::SSL SOAP::Transport::HTTP FindBin DateTime Carp
)
# read input
# read input
while
getopts
"d:u:k:c:a:Vh"
options
;
do
while
getopts
"d:u:k:c:a:Vh"
options
;
do
case
$options
in
case
$options
in
...
@@ -286,10 +284,10 @@ echo "------------------------- Installation process --------------------------"
...
@@ -286,10 +284,10 @@ echo "------------------------- Installation process --------------------------"
make_warden_dir
make_warden_dir
# copy cert key file
# copy cert key file
c
opy
_key
c
heck
_key
# copy cert file
# copy cert file
c
opy
_cert
c
heck
_cert
# create conf file
# create conf file
make_conf_file
make_conf_file
...
...
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