Skip to content
Closed
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
1 change: 1 addition & 0 deletions packaging/cfengine-nova-hub/cfengine-nova-hub.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ cp %{_basedir}/nova/db/schema.sql $RPM_BUILD_ROOT%prefix/share/db/
cp %{_basedir}/nova/db/schema_settings.sql $RPM_BUILD_ROOT%prefix/share/db/
cp %{_basedir}/nova/db/ootb_settings.sql $RPM_BUILD_ROOT%prefix/share/db/
cp %{_basedir}/nova/db/ootb_import.sql $RPM_BUILD_ROOT%prefix/share/db/
cp %{_basedir}/nova/db/revoke_unsafe_functions.sql $RPM_BUILD_ROOT%prefix/share/db/
mkdir -p $RPM_BUILD_ROOT/var/log/
touch $RPM_BUILD_ROOT/var/log/postgresql.log

Expand Down
1 change: 1 addition & 0 deletions packaging/cfengine-nova-hub/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ install: build
cp $(BASEDIR)/nova/db/schema_settings.sql $(CURDIR)/debian/tmp$(PREFIX)/share/db/
cp $(BASEDIR)/nova/db/ootb_settings.sql $(CURDIR)/debian/tmp$(PREFIX)/share/db/
cp $(BASEDIR)/nova/db/ootb_import.sql $(CURDIR)/debian/tmp$(PREFIX)/share/db/
cp $(BASEDIR)/nova/db/revoke_unsafe_functions.sql $(CURDIR)/debian/tmp$(PREFIX)/share/db/

# ENT-2708, ENT-2846
chmod 600 $(CURDIR)/debian/tmp$(PREFIX)/share/GUI/application/config/*.php
Expand Down
1 change: 1 addition & 0 deletions packaging/common/cfengine-hub/postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,7 @@ else
# cfdb schema relies on cfsettings already existing for a foreign data wrapper association for shared and personal host groups tables
chown cfpostgres "$PREFIX/share/db/schema.sql" && su cfpostgres -c "$PREFIX/bin/psql cfdb -f $PREFIX/share/db/schema.sql" && chown root "$PREFIX/share/db/schema.sql"
chown cfpostgres "$PREFIX/share/db/ootb_import.sql" && su cfpostgres -c "$PREFIX/bin/psql cfdb -f $PREFIX/share/db/ootb_import.sql" && chown root "$PREFIX/share/db/ootb_import.sql"
chown cfpostgres "$PREFIX/share/db/revoke_unsafe_functions.sql" && su cfpostgres -c "$PREFIX/bin/psql cfdb -f $PREFIX/share/db/revoke_unsafe_functions.sql" && chown root "$PREFIX/share/db/revoke_unsafe_functions.sql"
)

(
Expand Down