kylin-system-updater/debian/postinst

24 lines
1.0 KiB
Plaintext
Raw Normal View History

2021-09-18 16:42:29 +08:00
#!/bin/bash
if [ ! -d /var/cache/kylin-system-updater ];then
mkdir -p /var/cache/kylin-system-updater
fi
if [ ! -f /var/cache/kylin-system-updater/kylin-system-updater.db ];then
echo "Copying database to the specified path ..."
cp -r /usr/share/kylin-system-updater/kylin-system-updater.db /var/cache/kylin-system-updater/
fi
2021-10-30 15:36:07 +08:00
mkdir -p /usr/lib/`dpkg-architecture -qDEB_TARGET_MULTIARCH`/ukui-control-center/
mv /usr/lib/libupgrade.so /usr/lib/`dpkg-architecture -qDEB_TARGET_MULTIARCH`/ukui-control-center/
2021-11-17 11:45:50 +08:00
if [ -f /usr/lib/`dpkg-architecture -qDEB_TARGET_MULTIARCH`/ukui-control-center/libupgrade.so.old ];then
echo "Remove old libupgrade.so.old..."
rm /usr/lib/`dpkg-architecture -qDEB_TARGET_MULTIARCH`/ukui-control-center/libupgrade.so.old
2021-12-20 17:56:41 +08:00
fi
mkdir -p /var/lib/unattended-upgrades
chmod +x /usr/bin/unattended-upgrades-daily
chmod +x /usr/bin/unattended-upgrade
systemctl enable unattended-upgrades-download.timer
systemctl enable unattended-upgrades-install.timer
2021-12-21 10:50:19 +08:00
systemctl enable unattended-upgrades.service