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
75c66d46
Commit
75c66d46
authored
12 years ago
by
Tomáš Plesník
Browse files
Options
Downloads
Patches
Plain Diff
odstraneno generovani a update warden-client.conf
parent
345a81a5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/warden-server/sh/install.sh
+2
-42
2 additions, 42 deletions
src/warden-server/sh/install.sh
src/warden-server/sh/update.sh
+2
-42
2 additions, 42 deletions
src/warden-server/sh/update.sh
with
4 additions
and
84 deletions
src/warden-server/sh/install.sh
+
2
−
42
View file @
75c66d46
...
...
@@ -7,7 +7,7 @@
# Use of this source is governed by a BSD-style license, see LICENSE file.
VERSION
=
"2.
1
"
VERSION
=
"2.
2
"
#-------------------------------------------------------------------------------
# FUNCTIONS
...
...
@@ -143,41 +143,6 @@ make_warden_dir()
}
make_client_conf
()
{
echo
-n
"Creating client configuration file ... "
echo
"#
# warden-client.conf - configuration file for the warden sender/receiver client
#
#-------------------------------------------------------------------------------
# URI - URI address of Warden server
#-------------------------------------------------------------------------------
\$
URI =
\"
https://
${
hostname
}
:443/Warden
\"
;
#-------------------------------------------------------------------------------
# SSL_KEY_FILE - path to client SSL certificate key file
#-------------------------------------------------------------------------------
\$
SSL_KEY_FILE =
\"
${
key
}
\"
;
#-------------------------------------------------------------------------------
# SSL_CERT_FILE - path to client SSL certificate file
#-------------------------------------------------------------------------------
\$
SSL_CERT_FILE =
\"
${
cert
}
\"
;
#-------------------------------------------------------------------------------
# SSL_CA_FILE - path to CA certificate file
#-------------------------------------------------------------------------------
\$
SSL_CA_FILE =
\"
${
ca_file
}
\"
;"
>
$client_conf
2>
$err
;
ret_val
=
`
echo
$?
`
if
[
$ret_val
-eq
0
]
;
then
echo
"OK"
else
err_clean
fi
}
make_server_conf
()
{
echo
-n
"Creating server configuration file ... "
...
...
@@ -347,7 +312,6 @@ server_path="${prefix}/warden-server"
bin
=
"
${
server_path
}
/bin"
local_bin
=
"/usr/local/bin"
etc
=
"
${
server_path
}
/etc"
client_conf
=
"
${
etc
}
/warden-client.conf"
server_conf
=
"
${
etc
}
/warden-server.conf"
apache_conf
=
"
${
etc
}
/warden-apache.conf"
var
=
"
${
server_path
}
/var"
...
...
@@ -370,12 +334,9 @@ modules_chck
echo
echo
"------------------------- Installation process --------------------------"
# make warden
client
directory
# make warden
server
directory
make_warden_dir
# create client configuration file
make_client_conf
# create server configuration file
make_server_conf
...
...
@@ -390,7 +351,6 @@ create_symlinks
echo
echo
"Please check configuration files:"
echo
" -
${
client_conf
}
"
echo
" -
${
server_conf
}
"
echo
" -
${
apache_conf
}
"
echo
...
...
This diff is collapsed.
Click to expand it.
src/warden-server/sh/update.sh
+
2
−
42
View file @
75c66d46
...
...
@@ -7,7 +7,7 @@
# Use of this source is governed by a BSD-style license, see LICENSE file.
VERSION
=
"2.
1
"
VERSION
=
"2.
2
"
#-------------------------------------------------------------------------------
# FUNCTIONS
...
...
@@ -210,45 +210,7 @@ $perl_switches
else
err_clean
fi
#-------------------------------------------------------------------------------
echo
-n
"Updating
$client_conf_file
... "
uri
=
`
cat
$client_conf_file
|
grep
'$URI'
`
ssl_key_file
=
`
cat
$client_conf_file
|
grep
'$SSL_KEY_FILE'
`
ssl_cert_file
=
`
cat
$client_conf_file
|
grep
'$SSL_CERT_FILE'
`
ssl_ca_file
=
`
cat
$client_conf_file
|
grep
'$SSL_CA_FILE'
`
echo
"#
# warden-client.conf - configuration file for registration and status clients
#
#-------------------------------------------------------------------------------
# URI - URI address of Warden server
#-------------------------------------------------------------------------------
$uri
#-------------------------------------------------------------------------------
# SSL_KEY_FILE - path to server SSL certificate key file
#-------------------------------------------------------------------------------
$ssl_key_file
#-------------------------------------------------------------------------------
# SSL_CERT_FILE - path to server SSL certificate file
#-------------------------------------------------------------------------------
$ssl_cert_file
#-------------------------------------------------------------------------------
# SSL_CA_FILE - path to CA certificate file
#-------------------------------------------------------------------------------
$ssl_ca_file
"
>
$client_conf_file
2>
$err
;
ret_val
=
`
echo
$?
`
if
[
$ret_val
-eq
0
]
;
then
echo
"OK"
else
err_clean
fi
#-------------------------------------------------------------------------------
...
...
@@ -381,7 +343,6 @@ etc="${server_path}/etc"
doc
=
"
${
server_path
}
/doc"
old_package_version_file
=
"
${
etc
}
/package_version"
apache_conf_file
=
"
${
etc
}
/warden-apache.conf"
client_conf_file
=
"
${
etc
}
/warden-client.conf"
server_conf_file
=
"
${
etc
}
/warden-server.conf"
err
=
"/tmp/warden-err"
backup_dir
=
"/tmp/warden-server-backup"
...
...
@@ -420,7 +381,6 @@ echo
echo
"Please check updated configuration files:"
echo
" -
$apache_conf_file
"
echo
" -
$server_conf_file
"
echo
" -
$client_conf_file
"
echo
echo
"Warden server directory:
$server_path
"
echo
...
...
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