File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -42,11 +42,11 @@ if [ "${OS%:*}" = "centos" ]; then
42
42
make rpm
43
43
sudo mkdir -p /var/log/mamonsu
44
44
sudo touch /var/log/mamonsu/mamonsu.log
45
- chmod -R 777 /var/log/mamonsu/
45
+ chmod -R 640 /var/log/mamonsu/
46
46
sudo mkdir -p /etc/mamonsu
47
47
sudo touch /etc/mamonsu/agent.conf
48
48
cat /mamonsu/github-actions-tests/sources/agent_3.4.0.conf > /etc/mamonsu/agent.conf
49
- chmod -R 777 /etc/mamonsu/
49
+ chmod -R 640 /etc/mamonsu/
50
50
sudo yum -y install ./mamonsu* .rpm
51
51
systemctl daemon-reload
52
52
systemctl restart mamonsu
@@ -71,11 +71,11 @@ elif [ "${OS%:*}" = "ubuntu" ]; then
71
71
make deb
72
72
sudo mkdir -p /var/log/mamonsu
73
73
sudo touch /var/log/mamonsu/mamonsu.log
74
- chmod -R 777 /var/log/mamonsu/
74
+ chmod -R 640 /var/log/mamonsu/
75
75
sudo mkdir -p /etc/mamonsu
76
76
sudo touch /etc/mamonsu/agent.conf
77
77
cat /mamonsu/github-actions-tests/sources/agent_3.4.0.conf > /etc/mamonsu/agent.conf
78
- chmod -R 777 /etc/mamonsu/
78
+ chmod -R 640 /etc/mamonsu/
79
79
sudo apt-get -y install ./mamonsu* .deb
80
80
service mamonsu restart
81
81
sleep 5
Original file line number Diff line number Diff line change @@ -27,14 +27,14 @@ install: build
27
27
binary-indep : build install
28
28
dh_testdir -i
29
29
dh_testroot -i
30
- install -m 0644 packaging/conf/example_linux.conf debian/mamonsu/usr/share/mamonsu
30
+ dh_fixperms -i
31
+ install -m 0640 packaging/conf/example_linux.conf debian/mamonsu/usr/share/mamonsu/example_linux.conf
31
32
dh_installchangelogs -i
32
33
dh_installinit -i
33
34
dh_installdebconf -i
34
35
dh_installlogrotate -i
35
36
dh_link -i
36
37
dh_compress -i
37
- dh_fixperms -i
38
38
dh_installdeb -i
39
39
dh_gencontrol -i
40
40
dh_md5sums -i
@@ -43,6 +43,7 @@ binary-indep: build install
43
43
binary-arch : build install
44
44
dh_testdir -a
45
45
dh_testroot -a
46
+ dh_fixperms -a
46
47
dh_installdocs -a
47
48
dh_installexamples -a
48
49
dh_installchangelogs -a
@@ -52,7 +53,6 @@ binary-arch: build install
52
53
dh_strip -a
53
54
dh_link -a
54
55
dh_compress -a
55
- dh_fixperms -a
56
56
dh_shlibdeps -a
57
57
dh_installdeb -a
58
58
dh_gencontrol -a
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export PYTHONPATH=%{buildroot}%{python3_sitelib}
30
30
%{__mkdir} -p %{buildroot }/%{_sysconfdir }/logrotate.d
31
31
%{__mkdir} -p %{buildroot }/%{_datarootdir }/%{name }
32
32
33
- %{__install} -m 0644 -p packaging/conf/example_linux.conf %{buildroot }/%{_sysconfdir }/%{name }/agent.conf
33
+ %{__install} -m 0640 -p packaging/conf/example_linux.conf %{buildroot }/%{_sysconfdir }/%{name }/agent.conf
34
34
%{__install} -m 0644 -p packaging/conf/template_linux.xml %{buildroot }/%{_datarootdir }/%{name }/template.xml
35
35
%{__install} -m 0644 -p examples/*.py %{buildroot }/%{_datarootdir }/%{name }/
36
36
%{__install} -m 0755 -p %{SOURCE1 } %{buildroot }/%{_sysconfdir }/init.d/%{name }
You can’t perform that action at this time.
0 commit comments