summaryrefslogtreecommitdiffstats
path: root/abs/mv-core/func/func.install
diff options
context:
space:
mode:
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
}