mirror of
https://github.com/znc/znc.git
synced 2026-08-09 18:32:55 +02:00
Fix permissions for modules's static data.
With cp -Rp, the files's permissions were just copied from source.
But 4c7808c5c broke that behaviour, so after copying we set permissions for new installed files.
Why "install" doesn't support installing directories? :(
This commit is contained in:
@@ -106,6 +106,8 @@ install_metadirs: create_install_dir
|
||||
d=$$(echo $$a | sed -e "s:$(srcdir)/::g;s:modperl::;s:modpython::"); \
|
||||
if [ -d $$a ] && [ -f $${d}.so ]; then \
|
||||
cp -R $$a $(DESTDIR)$(DATADIR); \
|
||||
find $(DESTDIR)$(DATADIR)/$$a -type d -exec chmod 0755 '{}' \;; \
|
||||
find $(DESTDIR)$(DATADIR)/$$a -type f -exec chmod 0644 '{}' \;; \
|
||||
fi \
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user