安装此包时preinst脚本报错问题,使用dpkg-architecture获取安装路径

This commit is contained in:
Z-bin 2021-11-13 12:27:41 +08:00
parent fc69d4cd26
commit 0750bfb5a2
1 changed files with 1 additions and 1 deletions

View File

@ -2,5 +2,5 @@
set -e
path="`qmake -query "QT_INSTALL_LIBS"`/ukui-control-center/libnetconnect.so"
path="/usr/lib/`/usr/bin/dpkg-architecture -qDEB_TARGET_MULTIARCH`/ukui-control-center/libnetconnect.so"
dpkg-divert --package kylin-nm --rename --divert "$path"".old" --add $path