Skip to content

Commit

Permalink
build: fix RPM buildspec
Browse files Browse the repository at this point in the history
- Stop using old-style user:group specification in chown calls
  • Loading branch information
mstyushin committed Aug 16, 2024
1 parent 1e54c59 commit f94a504
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packaging/rpm/SPECS/mamonsu.spec
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,20 @@ getent passwd mamonsu > /dev/null || \
-c "mamonsu monitoring user" mamonsu

mkdir -p /var/run/mamonsu
chown -R mamonsu.mamonsu /var/run/mamonsu
chown -R mamonsu:mamonsu /var/run/mamonsu

mkdir -p /etc/mamonsu/plugins
touch /etc/mamonsu/plugins/__init__.py

mkdir -p /var/log/mamonsu
chown -R mamonsu.mamonsu /var/log/mamonsu
chown -R mamonsu:mamonsu /var/log/mamonsu

%preun
/sbin/service mamonsu stop >/dev/null 2>&1
/sbin/chkconfig --del mamonsu

%post
chown -R mamonsu.mamonsu /etc/mamonsu
chown -R mamonsu:mamonsu /etc/mamonsu

%changelog
* Thu Apr 18 2024 Maxim Styushin <[email protected]> - 3.5.8-1
Expand Down

0 comments on commit f94a504

Please sign in to comment.