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
ec7f4918
Commit
ec7f4918
authored
13 years ago
by
Tomáš Plesník
Browse files
Options
Downloads
Patches
Plain Diff
uzavorkovani pouzitych promennych v retezcich
parent
d55929fe
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/warden-client/sh/uninstall.sh
+3
-3
3 additions, 3 deletions
src/warden-client/sh/uninstall.sh
src/warden-client/sh/update.sh
+4
-4
4 additions, 4 deletions
src/warden-client/sh/update.sh
src/warden-server/sh/uninstall.sh
+8
-8
8 additions, 8 deletions
src/warden-server/sh/uninstall.sh
with
15 additions
and
15 deletions
src/warden-client/sh/uninstall.sh
+
3
−
3
View file @
ec7f4918
...
...
@@ -31,7 +31,7 @@
# otherwise) arising in any way out of the use of this software, even
# if advised of the possibility of such damage.
VERSION
=
"1.
0
"
VERSION
=
"1.
1
"
#-------------------------------------------------------------------------------
# FUNCTIONS
...
...
@@ -88,7 +88,7 @@ os_chck()
{
OS
=
`
uname
`
if
[
"
$OS
"
!=
"Linux"
]
;
then
echo
"Sorry, unsupported operating system detected -
\"
$OS
\"
!"
echo
"Sorry, unsupported operating system detected -
\"
$
{
OS
}
\"
!"
exit
1
fi
}
...
...
@@ -117,7 +117,7 @@ params_chck()
{
if
[
-z
$prefix
]
;
then
prefix
=
/opt
echo
"Warning: parameter -d <directory> is not set - default uninstallation directory is
$prefix
!"
echo
"Warning: parameter -d <directory> is not set - default uninstallation directory is
$
{
prefix
}
!"
fi
}
...
...
This diff is collapsed.
Click to expand it.
src/warden-client/sh/update.sh
+
4
−
4
View file @
ec7f4918
...
...
@@ -32,7 +32,7 @@
# if advised of the possibility of such damage.
VERSION
=
"1.
1
"
VERSION
=
"1.
2
"
#-------------------------------------------------------------------------------
# FUNCTIONS
...
...
@@ -90,7 +90,7 @@ os_chck()
{
OS
=
`
uname
`
if
[
"
$OS
"
!=
"Linux"
]
;
then
echo
"Sorry, unsupported operating system detected -
\"
$OS
\"
!"
echo
"Sorry, unsupported operating system detected -
\"
$
{
OS
}
\"
!"
exit
1
fi
}
...
...
@@ -119,7 +119,7 @@ params_chck()
{
if
[
-z
$prefix
]
;
then
prefix
=
/opt
echo
"Warning: parameter -d <directory> is not set - default installation directory is
$prefix
!"
echo
"Warning: parameter -d <directory> is not set - default installation directory is
$
{
prefix
}
!"
fi
}
...
...
@@ -353,7 +353,7 @@ make_conf_file
change_permissions
echo
echo
"Please check configuration file in
$conf_file
!"
echo
"Please check configuration file in
$
{
conf_file
}
!"
echo
echo
"Warden client directory:
$client_path
"
echo
...
...
This diff is collapsed.
Click to expand it.
src/warden-server/sh/uninstall.sh
+
8
−
8
View file @
ec7f4918
...
...
@@ -31,7 +31,7 @@
# otherwise) arising in any way out of the use of this software, even
# if advised of the possibility of such damage.
VERSION
=
"0.
1
"
VERSION
=
"0.
2
"
#-------------------------------------------------------------------------------
# FUNCTIONS
...
...
@@ -74,8 +74,8 @@ err_clean()
{
echo
"FAILED!"
echo
" -> Reverting changes of warden server package ... OK"
rm
-rf
$server_path
/
*
>
/dev/null 2>&1
# delete new version
cp
-R
$backup_dir
/
*
$server_path
# copy old backuped server
rm
-rf
$
{
server_path
}
/
*
>
/dev/null 2>&1
# delete new version
cp
-R
$
{
backup_dir
}
/
*
$server_path
# copy old backuped server
chmod
600
$db_file
# change permission to DB file
for
file
in
`
ls
-1
$bin
|
grep
-v
warden-alive |
grep
-v
create_tables.sh |
grep
-v
wardend
`
do
...
...
@@ -95,7 +95,7 @@ os_chck()
{
OS
=
`
uname
`
if
[
"
$OS
"
!=
"Linux"
]
;
then
echo
"Sorry, unsupported operating system detected -
\"
$OS
\"
!"
echo
"Sorry, unsupported operating system detected -
\"
$
{
OS
}
\"
!"
exit
1
fi
}
...
...
@@ -124,7 +124,7 @@ params_chck()
{
if
[
-z
$prefix
]
;
then
prefix
=
/opt
echo
"Warning: parameter -d <directory> is not set - default uninstallation directory is
$prefix
!"
echo
"Warning: parameter -d <directory> is not set - default uninstallation directory is
$
{
prefix
}
!"
fi
}
...
...
@@ -155,7 +155,7 @@ warden_dir_chck()
stop_warden_server
()
{
echo
"Stopping warden server ... "
$init
force-stop 1>/dev/null 2>&1
$
{
init
}
force-stop 1>/dev/null 2>&1
}
...
...
@@ -176,10 +176,10 @@ delete_symlinks()
echo
-n
"Deleting symlinks from /usr/local/bin ..."
for
file
in
`
ls
-1
$bin
|
grep
-v
warden-alive |
grep
-v
wardend |
grep
-v
create_tables.sh
`
do
rm
-rf
/usr/
local
/
bin/
$file
2> /dev/null
rm
-rf
${
local
_
bin
}
/
$file
2> /dev/null
done
echo
"OK"
echo
-n
"Deleting symlink from
$init
..."
echo
-n
"Deleting symlink from
$
{
init
}
..."
rm
-rf
$init
2> /dev/null
echo
"OK"
}
...
...
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