summaryrefslogtreecommitdiffstats
path: root/abs/mv-core/func/func.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-02-27 21:40:48 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-02-27 21:40:48 (GMT)
commitf8de853dd6ca2b9f5bd5494e34973eab89e40fa5 (patch)
tree8aa1ce2d4651add1262fff2aee657e443013198a /abs/mv-core/func/func.install
parent9828f9a5ca4c0b65c7d7dd2d7de9ee909ecaa6dd (diff)
downloadlinhes_pkgbuild-f8de853dd6ca2b9f5bd5494e34973eab89e40fa5.zip
linhes_pkgbuild-f8de853dd6ca2b9f5bd5494e34973eab89e40fa5.tar.gz
linhes_pkgbuild-f8de853dd6ca2b9f5bd5494e34973eab89e40fa5.tar.bz2
create dir for func/certmaster logging.
Diffstat (limited to 'abs/mv-core/func/func.install')
-rwxr-xr-xabs/mv-core/func/func.install11
1 files changed, 9 insertions, 2 deletions
diff --git a/abs/mv-core/func/func.install b/abs/mv-core/func/func.install
index a1d42f8..5f0fa72 100755
--- a/abs/mv-core/func/func.install
+++ b/abs/mv-core/func/func.install
@@ -4,6 +4,7 @@
# arg 1: the new package version
pre_install() {
/bin/true
+mkdir -p /var/log/func
}
# arg 1: the new package version
@@ -12,9 +13,15 @@ post_install() {
then
mkdir /etc/cron.tenminutes
fi
+ if [ ! -e /etc/cron.tenminutes/failed_func.sh ]
+ then
+ ln -s /usr/bin/failed_func.sh /etc/cron.tenminutes/failed_func.sh
+ fi
- ln -s /usr/bin/failed_func.sh /etc/cron.tenminutes/failed_func.sh
-
+ if [ ! -e /var/log/func ]
+ then
+ mkdir -p /var/log/func
+ fi
}