You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
460 B
15 lines
460 B
#!/bin/bash
|
|
|
|
ENABLED=yes
|
|
[[ ${ENABLED} == "yes" ]] || exit 0
|
|
|
|
if [ -d /var/opt/kaspersky ] ;then
|
|
if [ -d /mnt/livedata/ublinux-data ] ;then
|
|
if [ ! -d /mnt/livedata/ublinux-data/cache/kaspersky ] ;then
|
|
mkdir -p /mnt/livedata/ublinux-data/cache/kaspersky
|
|
cp -pr /var/opt/kaspersky/* /mnt/livedata/ublinux-data/cache/kaspersky || exit 1
|
|
fi
|
|
mount --bind /mnt/livedata/ublinux-data/cache/kaspersky /var/opt/kaspersky
|
|
fi
|
|
fi
|