postinst数据迁移

This commit is contained in:
luoxueyi 2022-02-23 15:30:36 +08:00
parent 598e64562f
commit 4e6e8b9ec5
1 changed files with 6 additions and 0 deletions

6
debian/postinst vendored
View File

@ -13,4 +13,10 @@ mv /usr/lib/libupgrade.so /usr/lib/`dpkg-architecture -qDEB_TARGET_MULTIARCH`/uk
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
fi
if [ -f /usr/share/kylin-system-updater/SystemUpdater/Core/DataMigration.py ];then
echo "Database record migration"
/usr/share/kylin-system-updater/SystemUpdater/Core/DataMigration.py -c /var/cache/kylin-update-manager/kylin-update-manager.db:installed
/usr/share/kylin-system-updater/SystemUpdater/Core/DataMigration.py -o /var/cache/kylin-update-manager/kylin-update-manager.db -n /var/cache/kylin-update-manager/kylin-update-manager.db
fi