summaryrefslogtreecommitdiffstats
path: root/abs/core/func
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2011-12-12 15:13:10 (GMT)
committerJames Meyer <james.meyer@operamail.com>2011-12-12 15:13:10 (GMT)
commit14094dae7617a478cebc30fa2f5fbb665939e9b0 (patch)
treee6ee447f2a9ce9eb1c3edd8d743321dd1ffea905 /abs/core/func
parentdd676eeea075e3638ce98bc02642db4f470112e3 (diff)
downloadlinhes_pkgbuild-14094dae7617a478cebc30fa2f5fbb665939e9b0.zip
linhes_pkgbuild-14094dae7617a478cebc30fa2f5fbb665939e9b0.tar.gz
linhes_pkgbuild-14094dae7617a478cebc30fa2f5fbb665939e9b0.tar.bz2
func: rename failed_func and set it as a bash script in the header.
Diffstat (limited to 'abs/core/func')
-rw-r--r--abs/core/func/PKGBUILD10
-rw-r--r--abs/core/func/failed_func (renamed from abs/core/func/failed_func.sh)9
-rw-r--r--abs/core/func/func.install2
3 files changed, 11 insertions, 10 deletions
diff --git a/abs/core/func/PKGBUILD b/abs/core/func/PKGBUILD
index d7d4019..1110451 100644
--- a/abs/core/func/PKGBUILD
+++ b/abs/core/func/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=func
pkgver=0.25
-pkgrel=2
+pkgrel=4
pkgdesc="fedora unifed network controller"
url=""
license="gpl"
@@ -8,10 +8,10 @@ depends=(pyopenssl certmaster python_aosd)
makedepends=()
conflicts=()
replaces=()
-backup=()
+backup=('etc/func/minion.conf')
moddir="pkg/usr/lib/python2.6/site-packages/func/minion/modules/"
install=func.install
-source=($pkgname-$pkgver.tar.gz minion.conf power.py pacman.py failed_func.sh fe_restart.py msg.py msg.cfg)
+source=($pkgname-$pkgver.tar.gz minion.conf power.py pacman.py failed_func fe_restart.py msg.py msg.cfg)
arch=('i686')
build() {
@@ -28,7 +28,7 @@ build() {
install -m755 -D $startdir/src/msg.py ${startdir}/${moddir}/msg.py
install -m755 -D $startdir/src/msg.cfg ${startdir}/pkg/usr/MythVantage/etc/msg.cfg
install -m755 -D $startdir/src/fe_restart.py ${startdir}/${moddir}/fe_restart.py
- install -m755 -D $startdir/src/failed_func.sh $startdir/pkg/usr/MythVantage/bin/failed_func.sh
+ install -m755 -D $startdir/src/failed_func $startdir/pkg/usr/MythVantage/bin/failed_func
mkdir -p $startdir/pkg/var/log/func
cd $startdir/pkg
@@ -38,7 +38,7 @@ md5sums=('892252004f122c61bb58bb4607553ffe'
'1e2905074203d5c0557f143a6c50c497'
'1393088fa64823606e0b1c02296041f4'
'65a602524cb85773740840eaa513ce15'
- 'aa4d3f4612965ae99d6ba2e40673c3ac'
+ '5c62fad46fb95a14bc7093b506098e07'
'b02a733b7a74569e57521bc3708724a5'
'572bb6737cb03dee7e9d11ed40481bd2'
'4f189262b2a686c5ac9485c6e5134045')
diff --git a/abs/core/func/failed_func.sh b/abs/core/func/failed_func
index b44eb65..943fab9 100644
--- a/abs/core/func/failed_func.sh
+++ b/abs/core/func/failed_func
@@ -1,10 +1,11 @@
+#!/bin/bash
. /etc/profile
. /etc/systemconfig
-if [ x$SystemType = "xMaster_backend" -o x$SystemType = "xStandAlone" ]
-then
- exit 0
-fi
+#if [ x$SystemType = "xMaster_backend" -o x$SystemType = "xStandAlone" ]
+#then
+# exit 0
+#fi
curl -# http://$dbhost/failed_func_hosts|grep -q `hostname`
status=$?
if [ $status = 0 ]
diff --git a/abs/core/func/func.install b/abs/core/func/func.install
index 1fcf6b1..f204214 100644
--- a/abs/core/func/func.install
+++ b/abs/core/func/func.install
@@ -15,7 +15,7 @@ post_install() {
fi
if [ ! -e /etc/cron.tenminutes/failed_func ]
then
- ln -s /usr/MythVantage/bin/failed_func.sh /etc/cron.tenminutes/failed_func
+ ln -s /usr/MythVantage/bin/failed_func /etc/cron.tenminutes/failed_func
fi
if [ ! -e /var/log/func ]