blob: 439a3ee6fc025ef6479d71105c6ae360a2348b9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
post_install() {
if [ ! -d /var/spool/moblock/used ]
then
mkdir -p /var/spool/moblock/used
fi
if [ ! -e /etc/cron.daily/moblock-control-update.sh ]
then
ln -s /usr/bin/moblock-control-update.sh /etc/cron.daily/moblock-control-update.sh
fi
}
post_upgrade() {
if [ ! -d /var/spool/moblock/used ]
then
mkdir -p /var/spool/moblock/used
fi
if [ ! -e /etc/cron.daily/moblock-control-update.sh ]
then
ln -s /usr/bin/moblock-control-update.sh /etc/cron.daily/moblock-control-update.sh
fi
}
op=$1
shift
$op $*
|