Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions packaging/cfengine-nova-hub/cfengine-nova-hub.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -368,12 +368,15 @@ exit 0

# ENT-2708, ENT-2846
%defattr(600,root,root,700)
%prefix/share/GUI/application/config/*.php
%prefix/share/GUI/phpcfenginenova/*.sql
%prefix/share/GUI/phpcfenginenova/migrations
%prefix/share/GUI/phpcfenginenova/migrations/*.sql
%prefix/share/db/*.sql

# No-one should need access to anything under share/GUI
%defattr(400,root,root,400)
# We can change these configuration files as part of masterfiles policy so need to mark as configs
%config(noreplace) %prefix/share/GUI/application/config/config.php
%config(noreplace) %prefix/share/GUI/api/modules/inventory/config/config.php
%prefix/share/GUI

# Base policy
%defattr(644,root,root,755)
%prefix/share/NovaBase
Expand Down
2 changes: 2 additions & 0 deletions packaging/cfengine-nova-hub/debian/conffiles
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/var/cfengine/share/GUI/application/config/config.php
/var/cfengine/share/GUI/api/modules/inventory/config/config.php
7 changes: 7 additions & 0 deletions packaging/cfengine-nova-hub/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ install: build
# cf-enterprise-support
cp $(BASEDIR)/nova/misc/cf-support-nova-hub.sh $(CURDIR)/debian/tmp$(PREFIX)/share/

execute_after_dh_fixperms:
# No-one should need access to anything under share/GUI
chmod 400 -R $(CURDIR)/debian/tmp$(PREFIX)/share/
chmod 700 $(CURDIR)/debian/tmp$(PREFIX)/ppkeys/
chmod 700 $(CURDIR)/debian/tmp$(PREFIX)/outputs/
chmod 700 $(CURDIR)/debian/tmp$(PREFIX)/inputs/
chmod 700 $(CURDIR)/debian/tmp$(PREFIX)/state/

binary-indep: build install

Expand Down
Loading