Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152391 - zoneminder-1.22.2 post-install instructions are not correct
Summary: zoneminder-1.22.2 post-install instructions are not correct
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-22 10:14 UTC by ondrej
Modified: 2006-10-22 11:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ondrej 2006-10-22 10:14:54 UTC
For the ebuild zoneminder-1.22.2, file '...files/postinstall-2.txt' = post installation instructions contains an error - in the line "grant....."  the database name should be  "zm", not "zoneminder". And the content is presented in a confusing way.
==================================
This is the current content of 'postinstall-2.txt':

0. If this is a new installation, you will need to create a database for ZM to
   use. Execute the following:

 cd /usr/share/${PN}
 mysql mysql < db/zm_create.sql
 mysql mysql
  > grant select,insert,update,delete on zoneminder.* to '<username>'@localhost identified by '<password>';
  > quit
 mysqladmin reload

1.  Edit /etc/zm.conf:
  ZM_PATH_BUILD => /usr/share/${PN}
  ZM_PATH_WEB   => ${MY_INSTALLDIR}
  ZM_PATH_CGI   => ${VHOST_CGIBINDIR}

  Also set your database settings.

2.  Start the zoneminder daemon:
  /etc/init.d/zoneminder stop

3. Login: http://${VHOST_HOSTNAME}/${VHOST_APPDIR}/zm.php

Default username/password are admin/admin

-----------------------------------------------------------
I propose this text :

0. If this is a new installation, you will need to create a database for zoneminder to use. Execute the following:

  $ cd /usr/share/${PN}
  $ mysql -p < db/zm_create.sql

Next login to the database and grant rights to database user that zoneminder will use.Note: <username> and <password> has to be replaced by the DB user/password, that zoneminder will use.:

  $ mysql -p

  mysql> grant select,insert,update,delete on zm.* to <username>'@localhost identified by '<password>';

  mysql> quit

  $ mysqladmin -p reload

1.  Edit the file '/etc/zm.conf':
  ZM_PATH_BUILD => /usr/share/${PN}
  ZM_PATH_WEB   => ${MY_INSTALLDIR}
  ZM_PATH_CGI   => ${VHOST_CGIBINDIR}

  Also set your database <username> and <password>.

2.  Start the zoneminder daemon:
  # /etc/init.d/zoneminder stop
  # /etc/init.d/zoneminder start

3. Login: http://${VHOST_HOSTNAME}/${VHOST_APPDIR}/zm.php

If your server is accessible on the internet, it is strongly recommended to set your zoneminder installation to authorized access only (set this in 'options' in the zoneminder console). Default username/password are admin/admin.
Comment 1 ondrej 2006-10-22 11:01:22 UTC
Mea culpa. When trying to reproduce the bug for geting more info for bugzilla, it suddenly works :-/ . It did not before, I spent few days in searching for the cause before...

OK, better that it works than not. :)