From 3417461db0460e873f06e7850f3909a44dabebce Mon Sep 17 00:00:00 2001 From: Steven Mondji-Lerider Date: Fri, 13 Apr 2012 16:06:57 +0000 Subject: [PATCH] still bugfixing --- bureau/class/m_mysql.php | 2 +- debian/alternc.postinst | 14 ++++++++++++-- debian/changelog | 2 +- install/mysql.sql | 2 ++ 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/bureau/class/m_mysql.php b/bureau/class/m_mysql.php index 28de83fc..af7cd841 100644 --- a/bureau/class/m_mysql.php +++ b/bureau/class/m_mysql.php @@ -347,7 +347,7 @@ class m_mysql { // Update all the "pass" fields for this user : $db->query("UPDATE db SET pass='$password' WHERE uid='$cuid';"); - $this->dbus->query("SET PASSWORD FOR ".$login."@".$this->dbus->client." = PASSWORD(".$password.");"); + $this->dbus->query("SET PASSWORD FOR ".$login."@".$this->dbus->client." = PASSWORD('$password');"); return true; } diff --git a/debian/alternc.postinst b/debian/alternc.postinst index 45e72513..3e4ea622 100644 --- a/debian/alternc.postinst +++ b/debian/alternc.postinst @@ -237,8 +237,18 @@ EOF # important: postinst gele sans ca db_stop - echo "running alternc.install" - alternc.install + + echo "**********************************************" + echo "* *" + echo "* ALTERNC *" + echo "* ------------ *" + echo "* *" + echo "* *" + echo "* Please run alternc.install to fully deploy *" + echo "* *" + echo "**********************************************" + + ;; diff --git a/debian/changelog b/debian/changelog index 6bc9ffc2..d9a4ffd0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,7 +5,7 @@ alternc (1.1+nmu2) stable; urgency=low adding of user vmail dedicated to the mail system * Bugfixes - -- root Sat, 03 Mar 2012 13:09:06 +0100 + -- Squidly Sat, 03 Mar 2012 13:09:06 +0100 alternc (1.1+nmu1) stable; urgency=low diff --git a/install/mysql.sql b/install/mysql.sql index 21f7f9f7..674f69fe 100644 --- a/install/mysql.sql +++ b/install/mysql.sql @@ -261,6 +261,8 @@ CREATE TABLE `mailbox` ( `quota` bigint(20) unsigned DEFAULT NULL, -- Quota for this mailbox. `delivery` varchar(255) NOT NULL, -- Delivery transport. `update_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- Update date, for technical usage only. + `bytes` bigint(20) NOT NULL DEFAULT '0', + `messages` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `address_id` (`address_id`) ) COMMENT = 'Table containing local deliverd mailboxes.';