kylin-system-updater/debian/postinst

25 lines
1.2 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-12-22 14:27:59 +08:00
systemctl enable kylin-system-updater.service
2021-12-20 17:56:41 +08:00
mkdir -p /var/lib/unattended-upgrades
chmod +x /usr/bin/kylin-unattended-upgrade
chmod +x /usr/bin/kylin-unattended-upgrade-shutdown
systemctl enable kylin-unattended-upgrades.service
2022-05-10 10:59:59 +08:00
2022-02-23 15:30:36 +08:00
if [ -f /usr/share/kylin-system-updater/SystemUpdater/Core/DataMigration.py ];then
2022-05-10 10:59:59 +08:00
# echo "Database record migration"
# /usr/share/kylin-system-updater/SystemUpdater/Core/DataMigration.py -m
/usr/share/kylin-system-updater/SystemUpdater/Core/DataMigration.py -u appname_cn=
2022-05-16 16:15:28 +08:00
/usr/share/kylin-system-updater/SystemUpdater/Core/DataMigration.py -t=tid_search
/usr/share/kylin-system-updater/SystemUpdater/Core/DataMigration.py -u status_cn=
/usr/share/kylin-system-updater/SystemUpdater/Core/DataMigration.py -u changelog=
2022-08-31 14:37:55 +08:00
/usr/share/kylin-system-updater/SystemUpdater/Core/DataMigration.py -u init_version="yes"
2022-02-23 15:35:58 +08:00
fi