[Exchange and share] 如何在postinst脚本中使用本地变量?
Tofloor
poster avatar
redmibook
deepin
2023-06-10 03:14
Author

我在尝试打包 Deb ,发现 postinst 脚本中似乎无法使用 $HOME 之类的本地变量,求大神指点。

Reply Favorite View the author
All Replies
enforcee
deepin
2023-06-10 05:26
#1

安装软件应该都是以root用户身份操作的,可能是这个原因

Reply View the author
Ziggy
deepin
2023-06-10 05:57
#2

postinst是安装后进行的,一般不影响打包

Reply View the author
redmibook
deepin
2023-06-10 08:26
#3

搞定了

Reply View the author