Skip to content

Commit

Permalink
Merge branch 'fix-bashisms' of https://github.com/evgeni/bareos
Browse files Browse the repository at this point in the history
  • Loading branch information
joergsteffens committed Jan 8, 2016
2 parents 966d6b8 + 22eb22e commit d00377c
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion debian/bareos-director.bareos-dir.init.in
Expand Up @@ -45,7 +45,7 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin
. /lib/lsb/init-functions

# workaround, if status_of_proc is not defined (Ubuntu 8.04)
if ! type status_of_proc >/dev/null; then
if ! command -v status_of_proc >/dev/null; then
status_of_proc ()
{
local pidfile daemon name status OPTIND
Expand Down
2 changes: 1 addition & 1 deletion debian/bareos-director.postinst.in
Expand Up @@ -45,7 +45,7 @@ case "$1" in
fi
permissions
# on Univention distributions the ucr command allows to open the firewall
if [ -x "/etc/init.d/univention-firewall" ] && type ucr >/dev/null 2>&1; then
if [ -x "/etc/init.d/univention-firewall" ] && which ucr >/dev/null 2>&1; then
ucr set \
security/packetfilter/package/bareos-director/tcp/@dir_port@/all="ACCEPT" \
security/packetfilter/package/bareos-director/tcp/@dir_port@/all/en="bareos-dir"
Expand Down
2 changes: 1 addition & 1 deletion debian/bareos-filedaemon.bareos-fd.init.in
Expand Up @@ -46,7 +46,7 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin
. /lib/lsb/init-functions

# workaround, if status_of_proc is not defined (Ubuntu 8.04)
if ! type status_of_proc >/dev/null; then
if ! command -v status_of_proc >/dev/null; then
status_of_proc ()
{
local pidfile daemon name status OPTIND
Expand Down
2 changes: 1 addition & 1 deletion debian/bareos-filedaemon.postinst.in
Expand Up @@ -47,7 +47,7 @@ case "$1" in
fi
permissions
# on Univention distributions the ucr command allows to open the firewall
if [ -x "/etc/init.d/univention-firewall" ] && type ucr >/dev/null 2>&1; then
if [ -x "/etc/init.d/univention-firewall" ] && which ucr >/dev/null 2>&1; then
ucr set \
security/packetfilter/package/bareos-filedaemon/tcp/@fd_port@/all="ACCEPT" \
security/packetfilter/package/bareos-filedaemon/tcp/@fd_port@/all/en="bareos-fd"
Expand Down
2 changes: 1 addition & 1 deletion debian/bareos-storage.bareos-sd.init.in
Expand Up @@ -43,7 +43,7 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin
. /lib/lsb/init-functions

# workaround, if status_of_proc is not defined (Ubuntu 8.04)
if ! type status_of_proc >/dev/null; then
if ! command -v status_of_proc >/dev/null; then
status_of_proc ()
{
local pidfile daemon name status OPTIND
Expand Down
2 changes: 1 addition & 1 deletion debian/bareos-storage.postinst.in
Expand Up @@ -50,7 +50,7 @@ case "$1" in
permissions
/usr/lib/bareos/scripts/bareos-config setup_sd_user
# on Univention distributions the ucr command allows to open the firewall
if [ -x "/etc/init.d/univention-firewall" ] && type ucr >/dev/null 2>&1; then
if [ -x "/etc/init.d/univention-firewall" ] && which ucr >/dev/null 2>&1; then
ucr set \
security/packetfilter/package/bareos-storage/tcp/@sd_port@/all="ACCEPT" \
security/packetfilter/package/bareos-storage/tcp/@sd_port@/all/en="bareos-sd"
Expand Down
2 changes: 1 addition & 1 deletion scripts/bareos-config-lib.sh.in
Expand Up @@ -37,7 +37,7 @@ os_type=`uname -s`
is_function()
{
func=${1-}
test "$func" && type "$func" > /dev/null 2>&1
test "$func" && command -v "$func" > /dev/null 2>&1
return $?
}

Expand Down

0 comments on commit d00377c

Please sign in to comment.