SPECS: drupal.spec - sample for granting mysql access permissions

glen glen at pld-linux.org
Mon Oct 31 14:53:27 CET 2005


Author: glen                         Date: Mon Oct 31 13:53:27 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- sample for granting mysql access permissions

---- Files affected:
SPECS:
   drupal.spec (1.34 -> 1.35) 

---- Diffs:

================================================================
Index: SPECS/drupal.spec
diff -u SPECS/drupal.spec:1.34 SPECS/drupal.spec:1.35
--- SPECS/drupal.spec:1.34	Sat Oct 29 15:48:36 2005
+++ SPECS/drupal.spec	Mon Oct 31 14:53:22 2005
@@ -3,7 +3,7 @@
 Summary(pl):	Platforma do zarządzania treścią o otwartych źródłach
 Name:		drupal
 Version:	4.6.3
-Release:	0.30
+Release:	0.32
 License:	GPL
 Group:		Applications/WWW
 Source0:	http://drupal.org/files/projects/%{name}-%{version}.tar.gz
@@ -160,7 +160,7 @@
 %patch5 -p1
 
 find -name '*~' | xargs -r rm -v
-cp %{SOURCE3} README.PLD
+cp -p %{SOURCE3} README.PLD
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -208,6 +208,10 @@
 and import initial schema:
 zcat %{_docdir}/%{name}-%{version}/database/database.mysql.gz | mysql drupal
 
+and grant permissions:
+mysql -e "GRANT SELECT, INSERT, UPDATE, DELETE ON drupal.* TO 'drupal'@'localhost' IDENTIFIED BY 'PASSWORD'"
+mysql -e "GRANT CREATE TEMPORARY TABLES, LOCK TABLES ON *.* TO 'drupal'@'localhost"
+
 Be sure to read INSTALL.txt from documentation!
 
 EOF
@@ -276,6 +280,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.35  2005/10/31 13:53:22  glen
+- sample for granting mysql access permissions
+
 Revision 1.34  2005/10/29 13:48:36  glen
 - -cron requires /usr/bin/php
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/drupal.spec?r1=1.34&r2=1.35&f=u




More information about the pld-cvs-commit mailing list