Crypt_GPG

small comment about debug and
small note in readme about file rights.
pull/63/head
noud 2012-10-23 17:27:50 +02:00
parent 0402c291a2
commit 9790c4b60f
2 changed files with 5 additions and 1 deletions

View File

@ -786,7 +786,7 @@ class EventsController extends AppController {
// sign the body
require_once 'Crypt/GPG.php';
$gpg = new Crypt_GPG(array('homedir' => Configure::read('GnuPG.homedir')));
$gpg = new Crypt_GPG(array('homedir' => Configure::read('GnuPG.homedir'))); // , 'debug' => true
$gpg->addSignKey(Configure::read('GnuPG.email'), Configure::read('GnuPG.password'));
$bodySigned = $gpg->sign($body, Crypt_GPG::SIGN_MODE_CLEAR);

View File

@ -47,6 +47,10 @@ cd /var/www/cydefsig/app/
chmod -R g+w tmp
chmod -R g+w files
# If installed Crypt_GPG and created it's homedir:
chown -R www-data:www-data /var/www/cydefsig/.gnupg
chmod -R u+rwx,go-rwxs /var/www/cydefsig/.gnupg
# Import the empty MySQL database in /var/www/cydefsig/app/MYSQL.txt using phpmyadmin or mysql>.
# Now configure your apache server with the DocumentRoot /var/www/cydefsig/app/webroot/