kylin-system-updater/debian/postinst

22 lines
946 B
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
2022-02-23 15:35:58 +08:00
fi