Skip to content

Commit

Permalink
radicale: fix permissions post-install
Browse files Browse the repository at this point in the history
  • Loading branch information
fanyx committed Dec 12, 2023
1 parent 5ee7978 commit a407a3c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
11 changes: 11 additions & 0 deletions srcpkgs/radicale/INSTALL
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# *-*-shell-*-*
#
case ${ACTION} in
post)
# fix permissions and owners
chown radicale:radicale /etc/radicale/config
chown radicale:radicale /etc/radicale/rights
chmod 644 /etc/radicale/config
chmod 640 /etc/radicale/rights
;;
esac
3 changes: 1 addition & 2 deletions srcpkgs/radicale/template
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ conf_files="
make_dirs="
/etc/radicale 755 root root
/usr/share/radicale/ 755 root root
/var/log/radicale/ 700 root root
/var/log/radicale/ 750 radicale radicale
/var/lib/radicale 750 radicale radicale"
system_accounts="radicale"
radicale_homedir="/var/lib/radicale"
Expand All @@ -38,7 +38,6 @@ do_check() {
post_install() {
vinstall config 644 etc/radicale/
vinstall rights 640 etc/radicale/
vinstall config 644 usr/share/examples/radicale
vinstall radicale.wsgi 644 usr/share/radicale
vsv radicale
vdoc README.md
Expand Down

0 comments on commit a407a3c

Please sign in to comment.