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-12-22 14:27:59 +08:00
|
|
|
systemctl enable kylin-system-updater.service
|
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:38:13 +08:00
|
|
|
|
2021-11-17 11:45:50 +08:00
|
|
|
if [ -f /usr/lib/`dpkg-architecture -qDEB_TARGET_MULTIARCH`/ukui-control-center/libupgrade.so.old ];then
|
2021-11-17 11:38:13 +08:00
|
|
|
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
|
2021-12-27 10:09:44 +08:00
|
|
|
chmod +x /usr/bin/kylin-unattended-upgrade
|
|
|
|
chmod +x /usr/bin/kylin-unattended-upgrade-shutdown
|
2021-12-20 17:56:41 +08:00
|
|
|
systemctl enable unattended-upgrades-download.timer
|
|
|
|
systemctl enable unattended-upgrades-install.timer
|
2021-12-27 10:09:44 +08:00
|
|
|
systemctl enable kylin-unattended-upgrades.service
|