blob: 14de9ec604a5874a7c09281433fb70ab33236844 (
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
29
30
31
32
|
post_install() {
/usr/local/bin/alisase-bin/3.4.2/alisasesvc --install
systemctl daemon-reload
if systemctl -q is-active alisase.service ;then
systemctl restart alisase.service
fi
ECHOLEN=$(echo -e | awk '{ print length($0) }')
if [ "${ECHOLEN}" = '0' ]
then
ECHO='echo -e'
else
ECHO='echo'
fi
$ECHO "\033[36m**********************************************************************\033[0m"
$ECHO "\033[36m* alisase daemon service must be running for Sase-ui client to work *\033[0m"
$ECHO "\033[36m* Type: systemctl start alisase.service *\033[0m"
$ECHO "\033[36m* Auto start: systemctl enable alisase.service *\033[0m"
$ECHO "\033[36m**********************************************************************\033[0m"
}
post_upgrade() {
post_install
}
pre_remove() {
/usr/local/bin/alisase-bin/3.4.2/alisasesvc --uninstall
}
|