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
4242 make rpm
4343 sudo mkdir -p /var/log/mamonsu
4444 sudo touch /var/log/mamonsu/mamonsu.log
45- chmod -R 640 /var/log/mamonsu/
45+ chmod -R 777 /var/log/mamonsu/
4646 sudo mkdir -p /etc/mamonsu
4747 sudo touch /etc/mamonsu/agent.conf
4848 cat /mamonsu/github-actions-tests/sources/agent_3.4.0.conf > /etc/mamonsu/agent.conf
49- chmod -R 640 /etc/mamonsu/
49+ chmod -R 777 /etc/mamonsu/
5050 sudo yum -y install ./mamonsu* .rpm
5151 systemctl daemon-reload
5252 systemctl restart mamonsu
@@ -71,11 +71,11 @@ elif [ "${OS%:*}" = "ubuntu" ]; then
7171 make deb
7272 sudo mkdir -p /var/log/mamonsu
7373 sudo touch /var/log/mamonsu/mamonsu.log
74- chmod -R 640 /var/log/mamonsu/
74+ chmod -R 777 /var/log/mamonsu/
7575 sudo mkdir -p /etc/mamonsu
7676 sudo touch /etc/mamonsu/agent.conf
7777 cat /mamonsu/github-actions-tests/sources/agent_3.4.0.conf > /etc/mamonsu/agent.conf
78- chmod -R 640 /etc/mamonsu/
78+ chmod -R 777 /etc/mamonsu/
7979 sudo apt-get -y install ./mamonsu* .deb
8080 service mamonsu restart
8181 sleep 5
Original file line number Diff line number Diff line change @@ -27,14 +27,14 @@ install: build
2727binary-indep : build install
2828 dh_testdir -i
2929 dh_testroot -i
30- dh_fixperms -i
31- install -m 0640 packaging/conf/example_linux.conf debian/mamonsu/usr/share/mamonsu/example_linux.conf
30+ install -m 0644 packaging/conf/example_linux.conf debian/mamonsu/usr/share/mamonsu
3231 dh_installchangelogs -i
3332 dh_installinit -i
3433 dh_installdebconf -i
3534 dh_installlogrotate -i
3635 dh_link -i
3736 dh_compress -i
37+ dh_fixperms -i
3838 dh_installdeb -i
3939 dh_gencontrol -i
4040 dh_md5sums -i
@@ -43,7 +43,6 @@ binary-indep: build install
4343binary-arch : build install
4444 dh_testdir -a
4545 dh_testroot -a
46- dh_fixperms -a
4746 dh_installdocs -a
4847 dh_installexamples -a
4948 dh_installchangelogs -a
@@ -53,6 +52,7 @@ binary-arch: build install
5352 dh_strip -a
5453 dh_link -a
5554 dh_compress -a
55+ dh_fixperms -a
5656 dh_shlibdeps -a
5757 dh_installdeb -a
5858 dh_gencontrol -a
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export PYTHONPATH=%{buildroot}%{python3_sitelib}
3030%{__mkdir} -p %{buildroot }/%{_sysconfdir }/logrotate.d
3131%{__mkdir} -p %{buildroot }/%{_datarootdir }/%{name }
3232
33- %{__install} -m 0640 -p packaging/conf/example_linux.conf %{buildroot }/%{_sysconfdir }/%{name }/agent.conf
33+ %{__install} -m 0644 -p packaging/conf/example_linux.conf %{buildroot }/%{_sysconfdir }/%{name }/agent.conf
3434%{__install} -m 0644 -p packaging/conf/template_linux.xml %{buildroot }/%{_datarootdir }/%{name }/template.xml
3535%{__install} -m 0644 -p examples/*.py %{buildroot }/%{_datarootdir }/%{name }/
3636%{__install} -m 0755 -p %{SOURCE1 } %{buildroot }/%{_sysconfdir }/init.d/%{name }
You can’t perform that action at this time.
0 commit comments