forked from pool/mariadb
- Little polishing of rc script
OBS-URL: https://build.opensuse.org/package/show/server:database/mariadb?expand=0&rev=155
This commit is contained in:
parent
c857b769f2
commit
cc480b61e6
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:10d34094de047645360cc0a2bf1c5d61a53eb626916d52e6c85ad8e2dc994104
|
||||
size 216
|
||||
oid sha256:b37a73dc9a052dfd53b58786e29b64618371b26991029e8960669bb50abf2540
|
||||
size 222
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 16 06:37:15 UTC 2014 - michal.hrusecky@opensuse.org
|
||||
|
||||
- Little polishing of rc script
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 3 12:26:08 UTC 2014 - kstreitova@novell.com
|
||||
|
||||
|
@ -42,7 +42,7 @@ License: SUSE-GPL-2.0-with-FLOSS-exception
|
||||
Group: Productivity/Databases/Servers
|
||||
Version: 10.0.13
|
||||
Release: 0
|
||||
%define srv_vers 5.6.17
|
||||
%define srv_vers 5.6.19
|
||||
Url: https://www.mariadb.org
|
||||
Source: mariadb-%{version}.tar.bz2
|
||||
Source2: baselibs.conf
|
||||
|
@ -35,9 +35,9 @@
|
||||
rc_check ()
|
||||
{
|
||||
_rc_status_ret=$?
|
||||
test "$_rc_status_ret" || _rc_status_ret=0
|
||||
test $_rc_status_ret -eq 0 || _rc_status=$_rc_status_ret
|
||||
test $_rc_status -eq 0 || _rc_status_all=$_rc_status
|
||||
test "$_rc_status_ret" || _rc_status_ret=0
|
||||
test 0$_rc_status_ret -eq 0 || _rc_status=$_rc_status_ret
|
||||
test 0$_rc_status -eq 0 || _rc_status_all=$_rc_status
|
||||
return 0$_rc_status_ret
|
||||
}
|
||||
|
||||
@ -45,21 +45,20 @@ rc_status ()
|
||||
{
|
||||
rc_check
|
||||
_rc_status_ret=$_rc_status
|
||||
local i
|
||||
for i ; do
|
||||
case "$i" in
|
||||
-v|-v[1-9]|-v[1-9][0-9])
|
||||
case "$_rc_status" in
|
||||
0) echo "Everything is Ok" ;; # success
|
||||
*) echo "Something went wrong" ;; # failed
|
||||
esac
|
||||
if [ "$1" ]; then
|
||||
case "$1" in
|
||||
-v|-v[1-9]|-v[1-9][0-9])
|
||||
case "$_rc_status" in
|
||||
0) echo "Everything is Ok" ;; # success
|
||||
*) echo "Something went wrong" ;; # failed
|
||||
esac
|
||||
|
||||
# reset _rc_status to 0 after verbose case
|
||||
_rc_status=0 ;;
|
||||
-r) rc_reset ;;
|
||||
*) echo "rc_status: Usage: [-v[<num>] [-r]]" 1>&2 ; return 0 ;;
|
||||
esac
|
||||
done
|
||||
# reset _rc_status to 0 after verbose case
|
||||
_rc_status=0 ;;
|
||||
-r) rc_reset ;;
|
||||
*) echo "rc_status: Usage: [-v[<num>] [-r]]" 1>&2 ; return 0 ;;
|
||||
esac
|
||||
fi
|
||||
return $_rc_status_ret
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user