安装后设置文件权限

时间:2015-09-20 21:09:38

标签: debian deb

我在这个例子中找到了如何构建deb包。

http://blog.noizeramp.com/2005/08/31/packaging-java-applications-for-ubuntu-and-other-debians/

我对如何在安装文件后设置文件权限感兴趣?

Package: myapp
Version: _version_
Section: web
Priority: optional
Architecture: all
Maintainer: Aleksey Gureev 
Description: my first sample application which isn't
 doing anything special.
 .
 And other description goes
 here too.
 .

1 个答案:

答案 0 :(得分:3)

你不这样做。相反,您在创建包时设置文件权限。

使用debhelper进行打包时,debian/rules中的内容如下:

override_dh_fixperms:
    dh_fixperms
    find debian -name '*.jar' -exec chmod 0644 {} +

你应该关注一个proper Debian packaging tutorial而不是一些随机的10岁博客帖子。

相关问题