Add some patches to upgrade scripts so that PostgreSQL database permissions
are correct. When upgrading and using PostgreSQL, be sure to run first the update_postgresql_tables and then the grant_postgresql_privileges script. These patches have been sent upstream, and are in CVS, but not yet released. Bump PORTREVISION. PR: 107721 Submitted by: Dan Langille (maintainer)
This commit is contained in:
parent
38331eb4a8
commit
66f90343a0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=181934
2 changed files with 29 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= bacula
|
PORTNAME= bacula
|
||||||
DISTVERSION= 2.0.0
|
DISTVERSION= 2.0.0
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= sysutils
|
CATEGORIES= sysutils
|
||||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||||
MASTER_SITE_SUBDIR= bacula
|
MASTER_SITE_SUBDIR= bacula
|
||||||
|
|
|
@ -0,0 +1,28 @@
|
||||||
|
Index: grant_postgresql_privileges.in
|
||||||
|
===================================================================
|
||||||
|
RCS file: /cvsroot/bacula/bacula/src/cats/grant_postgresql_privileges.in,v
|
||||||
|
retrieving revision 1.9
|
||||||
|
diff -u -b -r1.9 grant_postgresql_privileges.in
|
||||||
|
--- src/cats/grant_postgresql_privileges.in 6 Nov 2005 18:04:08 -0000 1.9
|
||||||
|
+++ src/catsgrant_postgresql_privileges.in 9 Jan 2007 22:49:01 -0000
|
||||||
|
@@ -28,6 +28,9 @@
|
||||||
|
grant all on storage to ${USER};
|
||||||
|
grant all on device to ${USER};
|
||||||
|
grant all on status to ${USER};
|
||||||
|
+grant all on location to ${USER};
|
||||||
|
+grant all on locationlog to ${USER};
|
||||||
|
+grant all on log to ${USER};
|
||||||
|
|
||||||
|
-- for sequences on those tables
|
||||||
|
|
||||||
|
@@ -44,7 +47,9 @@
|
||||||
|
grant select, update on storage_storageid_seq to ${USER};
|
||||||
|
grant select, update on mediatype_mediatypeid_seq to ${USER};
|
||||||
|
grant select, update on device_deviceid_seq to ${USER};
|
||||||
|
-
|
||||||
|
+grant select, update on location_locationid_seq to ${USER};
|
||||||
|
+grant select, update on locationlog_loclogid_seq to ${USER};
|
||||||
|
+grant select, update on log_logid_seq to ${USER};
|
||||||
|
|
||||||
|
END-OF-DATA
|
||||||
|
then
|
Loading…
Reference in a new issue