Skip to content

Commit 104e030

Browse files
committed
fix: set 600 filemode for config file for deb
1 parent 16afae0 commit 104e030

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packaging/debian/postinst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if [ "$1" = "configure" ]; then
1818

1919
mkdir -p /etc/mamonsu/plugins
2020
touch /etc/mamonsu/plugins/__init__.py
21-
[ -f /etc/mamonsu/agent.conf ] || cp /usr/share/mamonsu/example_linux.conf /etc/mamonsu/agent.conf
21+
[ -f /etc/mamonsu/agent.conf ] || cp /usr/share/mamonsu/example_linux.conf /etc/mamonsu/agent.conf && chown mamonsu:mamonsu /etc/mamonsu/agent.conf
2222

2323
chown mamonsu:mamonsu /var/log/mamonsu
2424
chown mamonsu:mamonsu /var/lib/mamonsu

packaging/debian/rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ install: build
2727
binary-indep: build install
2828
dh_testdir -i
2929
dh_testroot -i
30-
install -m 0644 packaging/conf/example_linux.conf debian/mamonsu/usr/share/mamonsu
3130
dh_installchangelogs -i
3231
dh_installinit -i
3332
dh_installdebconf -i
3433
dh_installlogrotate -i
3534
dh_link -i
3635
dh_compress -i
3736
dh_fixperms -i
37+
install -m 0600 -o mamonsu -g mamonsu packaging/conf/example_linux.conf debian/mamonsu/usr/share/mamonsu
3838
dh_installdeb -i
3939
dh_gencontrol -i
4040
dh_md5sums -i

0 commit comments

Comments
 (0)