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
713
Warden
Warden
Commits
7a40bc83
Commit
7a40bc83
authored
10 years ago
by
Tomáš Plesník
Browse files
Options
Downloads
Patches
Plain Diff
uprava informativnich hlasek a napovedy
parent
519c8e30
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/warden-server/sh/install.sh
+7
-7
7 additions, 7 deletions
src/warden-server/sh/install.sh
src/warden-server/sh/uninstall.sh
+7
-5
7 additions, 5 deletions
src/warden-server/sh/uninstall.sh
src/warden-server/sh/update.sh
+7
-7
7 additions, 7 deletions
src/warden-server/sh/update.sh
with
21 additions
and
19 deletions
src/warden-server/sh/install.sh
+
7
−
7
View file @
7a40bc83
...
...
@@ -14,13 +14,13 @@ VERSION="2.2"
#-------------------------------------------------------------------------------
usage
()
{
echo
"Usage:
${
0
##*/
}
-d <directory> -k <ssl_key
_file
> -c <ssl_cert
_file
> -a <ssl_ca_
file
> -e <email_address> [-s <directory>] [-hV]"
echo
"-d <directory> installation directory
of Warden server
"
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
"Usage:
${
0
##*/
}
-d <directory> -k <ssl_key> -c <ssl_cert> -a <ssl_ca_
cert
> -e <email_address> [-s <directory>] [-hV]"
echo
"-d <directory>
Warden server
installation directory"
echo
"-k <ssl_key
>
path to SSL
key
"
echo
"-c <ssl_cert
>
path to SSL certificate"
echo
"-a <ssl_ca_
cert
> path to
SSL
CA certificate"
echo
"-e <e-mail address> e-mail address to Warden server administrator"
echo
"-s <directory> directory f
or
symlinks to
Warden server
control scripts (optional)"
echo
"-s <directory> directory
o
f symlinks to
system
control scripts (optional)"
echo
"-h print this help"
echo
"-V print script version number and exit"
echo
...
...
@@ -175,7 +175,7 @@ createManifest()
createSymlinks
()
{
echo
-n
"Checking sym
bolic
links directory
$symbin
... "
echo
-n
"Checking symlinks directory
$symbin
... "
if
[[
-d
$symbin
&&
-w
$symbin
]]
;
then
echo
"OK"
for
file
in
"
${
bin
}
/"
*
...
...
This diff is collapsed.
Click to expand it.
src/warden-server/sh/uninstall.sh
+
7
−
5
View file @
7a40bc83
...
...
@@ -15,8 +15,8 @@ VERSION="2.2"
usage
()
{
echo
"Usage:
${
0
##*/
}
-d <directory> [-s <directory>] [-hV]"
echo
"-d <directory>
uninstallation directory of
Warden server"
echo
"-s <directory> directory f
or
symlinks to
Warden server
control scripts (optional)"
echo
"-d <directory> Warden server
to uninstall
"
echo
"-s <directory> directory
o
f symlinks to
system
control scripts (optional)"
echo
"-h print this help"
echo
"-V print script version number and exit"
echo
...
...
@@ -125,13 +125,15 @@ createBackup()
removeSymlinks
()
{
echo
-n
"Checking sym
bolic
links directory
$symbin
... "
echo
-n
"Checking symlinks directory
$symbin
... "
if
[[
-d
$symbin
&&
-w
$symbin
]]
;
then
echo
"OK"
for
file
in
"
$bin
/"
*
do
echo
"- removing symlink:
${
symbin
}
/
${
file
##*/
}
->
$file
"
rm
-f
"
${
symbin
}
/
${
file
##*/
}
"
2> /dev/null
if
[[
-f
"
${
symbin
}
/
${
file
##*/
}
"
]]
;
then
echo
"- removing symlink:
${
symbin
}
/
${
file
##*/
}
->
$file
"
rm
-f
"
${
symbin
}
/
${
file
##*/
}
"
2> /dev/null
fi
done
else
echo
"FAILED!"
...
...
This diff is collapsed.
Click to expand it.
src/warden-server/sh/update.sh
+
7
−
7
View file @
7a40bc83
...
...
@@ -14,13 +14,13 @@ VERSION="2.2"
#-------------------------------------------------------------------------------
usage
()
{
echo
"Usage:
${
0
##*/
}
-d <directory> [-hV]"
echo
"-d <directory>
destination directory of
Warden server"
echo
"-s <directory> directory f
or
symlinks to
Warden server
control scripts (optional)"
echo
"Usage:
${
0
##*/
}
-d <directory>
[-s <directory>]
[-hV]"
echo
"-d <directory> Warden server
to update
"
echo
"-s <directory> directory
o
f symlinks to
system
control scripts (optional)"
echo
"-h print this help"
echo
"-V print script version number and exit"
echo
echo
"Example:
$
./
${
0
##*/
}
-d /opt/warden-server"
echo
"Example:
$
./
${
0
##*/
}
-d /opt/warden-server
-s /usr/local/bin
"
echo
echo
"For more information about update process, see README file (section Update)."
echo
...
...
@@ -202,7 +202,7 @@ removeOldFiles()
createManifest
()
{
echo
-n
"Creating MANIFEST file ... "
echo
-n
"Creating
new
MANIFEST file ... "
cd
"
$basedir
"
&&
find
.
-mindepth
2
-type
f |
sed
's/.\///'
|
sort
>
"
${
doc
}
/MANIFEST"
&&
cd
$OLDPWD
2>
"
$err
"
||
errClean
echo
"OK"
}
...
...
@@ -210,12 +210,12 @@ createManifest()
createSymlinks
()
{
echo
-n
"Checking sym
bolic
links directory
$symbin
... "
echo
-n
"Checking symlinks directory
$symbin
... "
if
[[
-d
$symbin
&&
-w
$symbin
]]
;
then
echo
"OK"
for
file
in
"
${
bin
}
/"
*
do
echo
"-
mak
ing symlink:
${
symbin
}
/
${
file
##*/
}
->
$file
"
echo
"-
updat
ing symlink:
${
symbin
}
/
${
file
##*/
}
->
$file
"
ln
-s
"
$file
"
"
${
symbin
}
/
${
file
##*/
}
"
done
else
...
...
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