diff options
Diffstat (limited to 'databases/mysqlard')
-rw-r--r-- | databases/mysqlard/files/mysqlard.sh.in | 10 | ||||
-rw-r--r-- | databases/mysqlard/files/patch-aa | 2 | ||||
-rw-r--r-- | databases/mysqlard/files/patch-ab | 2 | ||||
-rw-r--r-- | databases/mysqlard/files/patch-ac | 2 | ||||
-rw-r--r-- | databases/mysqlard/files/patch-ad | 2 | ||||
-rw-r--r-- | databases/mysqlard/files/patch-ae | 2 | ||||
-rw-r--r-- | databases/mysqlard/files/patch-ag | 2 | ||||
-rw-r--r-- | databases/mysqlard/files/pkg-message.in | 2 |
8 files changed, 12 insertions, 12 deletions
diff --git a/databases/mysqlard/files/mysqlard.sh.in b/databases/mysqlard/files/mysqlard.sh.in index 6db84303808e..4065e3736c7a 100644 --- a/databases/mysqlard/files/mysqlard.sh.in +++ b/databases/mysqlard/files/mysqlard.sh.in @@ -1,4 +1,4 @@ -#!/usr/local/bin/bash +#!/bin/sh # # $Id: mysqlard.server.sh 40 2006-01-20 20:26:11Z dewitge $ # @@ -16,7 +16,7 @@ . %%RC_SUBR%% # Source the config script -if [[ "$datadir" == "" ]] ; then +if [ -z "$datadir" ] ; then echo Loading defaultsettings . %%PREFIX%%/etc/mysqlard.cnf fi @@ -44,11 +44,11 @@ queryfile=${queryfile:="${datadir}/queries.rrd"} slavefile=${slavefile:="${datadir}/slave.rrd"} slaveopt= -if [[ "$slave" != "" ]]; then +if [ -n "$slave" ]; then slaveopt=-L fi -if [[ "$MYSQLHOST" != "" ]] ; then +if [ -n "$MYSQLHOST" ] ; then MYSQLHOST=--host=$MYSQLHOST fi @@ -63,7 +63,7 @@ avgsamps () { } archives () { arch=$(($1 / $2)) - if [[ $(($2 * ${arch} * $3)) -lt $4 ]] + if [ $(($2 * ${arch} * $3)) -lt $4 ] then arch=$((${arch} + 1)) fi diff --git a/databases/mysqlard/files/patch-aa b/databases/mysqlard/files/patch-aa index 8d64bfa71e9d..7cdf86e343bc 100644 --- a/databases/mysqlard/files/patch-aa +++ b/databases/mysqlard/files/patch-aa @@ -2,7 +2,7 @@ +++ src/mysqlard.server.sh Tue Aug 1 11:11:29 2006 @@ -1,4 +1,4 @@ -#!/bin/bash -+#!/usr/local/bin/bash ++#!/bin/sh # # $Id: mysqlard.server.sh 40 2006-01-20 20:26:11Z dewitge $ # diff --git a/databases/mysqlard/files/patch-ab b/databases/mysqlard/files/patch-ab index 982111d17c75..094eefc823b7 100644 --- a/databases/mysqlard/files/patch-ab +++ b/databases/mysqlard/files/patch-ab @@ -2,7 +2,7 @@ +++ src/mysqlar.monthly.sh Tue Aug 1 11:10:54 2006 @@ -1,4 +1,4 @@ -#!/bin/bash -+#!/usr/local/bin/bash ++#!/bin/sh # # $Id: mysqlar.monthly.sh 35 2004-03-10 15:48:41Z dewitge $ # diff --git a/databases/mysqlard/files/patch-ac b/databases/mysqlard/files/patch-ac index 568144396da2..864be1ee8b19 100644 --- a/databases/mysqlard/files/patch-ac +++ b/databases/mysqlard/files/patch-ac @@ -2,7 +2,7 @@ +++ src/mysqlar.weekly.sh Tue Aug 1 11:11:09 2006 @@ -1,4 +1,4 @@ -#!/bin/bash -+#!/usr/local/bin/bash ++#!/bin/sh # # $Id: mysqlar.weekly.sh 35 2004-03-10 15:48:41Z dewitge $ # diff --git a/databases/mysqlard/files/patch-ad b/databases/mysqlard/files/patch-ad index ff136162a11b..d037a2e6ecaa 100644 --- a/databases/mysqlard/files/patch-ad +++ b/databases/mysqlard/files/patch-ad @@ -2,7 +2,7 @@ +++ src/mysqlard.cnf.sh Tue Aug 1 11:11:22 2006 @@ -1,4 +1,4 @@ -#!/bin/bash -+#!/usr/local/bin/bash ++#!/bin/sh # $Id: mysqlard.cnf.sh 40 2006-01-20 20:26:11Z dewitge $ # # MySQL Activity Report diff --git a/databases/mysqlard/files/patch-ae b/databases/mysqlard/files/patch-ae index 3f71255d6425..79c1291051b4 100644 --- a/databases/mysqlard/files/patch-ae +++ b/databases/mysqlard/files/patch-ae @@ -2,7 +2,7 @@ +++ src/mysqlar.daily.sh Tue Aug 1 11:10:47 2006 @@ -1,4 +1,4 @@ -#!/bin/bash -+#!/usr/local/bin/bash ++#!/bin/sh # # $Id: mysqlar.daily.sh 35 2004-03-10 15:48:41Z dewitge $ # diff --git a/databases/mysqlard/files/patch-ag b/databases/mysqlard/files/patch-ag index 47a4ed9461d3..a663252d0caa 100644 --- a/databases/mysqlard/files/patch-ag +++ b/databases/mysqlard/files/patch-ag @@ -2,7 +2,7 @@ +++ src/mysqlar_graph.sh Tue Aug 1 12:53:48 2006 @@ -1,4 +1,4 @@ -#!/bin/bash -+#!/usr/local/bin/bash ++#!/bin/sh # # $Id: mysqlar_graph.sh 40 2006-01-20 20:26:11Z dewitge $ # diff --git a/databases/mysqlard/files/pkg-message.in b/databases/mysqlard/files/pkg-message.in index 72ccc0f3e11e..d00fd34602cc 100644 --- a/databases/mysqlard/files/pkg-message.in +++ b/databases/mysqlard/files/pkg-message.in @@ -8,7 +8,7 @@ mysql> FLUSH PRIVILEGES; 2) Add the mysqlard crontab to root's crontab: -*/5 * * * * hourly=1 daily=1 weekly=1 monthly=1 \ +*/5 * * * * /usr/bin/env hourly=1 daily=1 weekly=1 monthly=1 \ %%PREFIX%%/bin/mysqlar_graph > /dev/null 3) Add a line like this to your apache's httpd.conf: |