From f0b4eb91d1a943add0f4a09cd6ef6240e74c3ad7 Mon Sep 17 00:00:00 2001 From: Zhang Huangbin Date: Sun, 11 Oct 2015 22:56:15 +0800 Subject: [PATCH] Don't mention iRedAPD-1.6.0. --- en_US/upgrade/0-upgrade.iredapd.md | 56 ------------------------------ html/upgrade.iredapd.html | 53 ---------------------------- 2 files changed, 109 deletions(-) diff --git a/en_US/upgrade/0-upgrade.iredapd.md b/en_US/upgrade/0-upgrade.iredapd.md index d056d1e8..33d8aa63 100644 --- a/en_US/upgrade/0-upgrade.iredapd.md +++ b/en_US/upgrade/0-upgrade.iredapd.md @@ -28,62 +28,6 @@ That's all. ---- -If you're upgrading iRedAPD-1.6.0 (or older release) to iRedAPD-1.7.0 (or newer -release), please create new SQL database `iredapd` with sql commands below: - -> Note: You can create a strong password for SQL user with command: -> `eval /dev/null || head -c 30)` - -* For OpenLDAP, MySQL, MariaDB backends, please login to SQL server as `root` - user, then create required database (replace sample password `passwd` in - sql command by the strong password you generated): - -``` -$ mysql -u root -p - -sql> CREATE DATABASE IF NOT EXISTS iredapd DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; -sql> USE iredapd; -sql> SOURCE /opt/iredapd/SQL/iredapd.mysql; -sql> GRANT ALL ON iredapd.* TO "iredapd"@"localhost" IDENTIFIED BY "passwd"; -sql> FLUSH PRIVILEGES; -``` - -Now update iRedAPD SQL database name, sql user name, and password in iRedAPD -config file `/opt/iredapd/settings.py` (all parameters start with `iredapd_db_`). - -* For PostgreSQL backend, please copy `/opt/iredapd/SQL/iredapd.pgsql` to `/tmp` - first, then switch to system user `postgres` (It's `_postgresql` on OpenBSD) - with `su` command, execute sql commands below: - -``` -# cp /opt/iredapd/SQL/iredapd.pgsql /tmp/ -# chmod 0755 /tmp/iredapd.pgsql - ----- Switch to system user `postgres` here ---- - -$ psql - --- Create database -sql> CREATE DATABASE iredapd WITH TEMPLATE template0 ENCODING 'UTF8'; - --- Create user -sql> CREATE USER iredapd WITH ENCRYPTED PASSWORD 'passwd' NOSUPERUSER NOCREATEDB NOCREATEROLE; -sql> ALTER DATABASE iredapd OWNER TO iredapd; - --- Import SQL template -sql> \c iredapd; -sql> \i /tmp/iredapd.pgsql; - --- Grant permissions -sql> GRANT ALL ON throttle,throttle_tracking TO iredapd; -sql> GRANT ALL ON throttle_id_seq,throttle_tracking_id_seq TO iredapd; -``` - -Now update iRedAPD SQL database name, sql user name, and password in iRedAPD -config file `/opt/iredapd/settings.py` (all parameters start with `iredapd_db_`). - ----- - Important notes: * It's recommended to enable plugin `reject_null_sender` in iRedAPD-1.4.4 or diff --git a/html/upgrade.iredapd.html b/html/upgrade.iredapd.html index ce6ed01b..63e9225b 100644 --- a/html/upgrade.iredapd.html +++ b/html/upgrade.iredapd.html @@ -35,59 +35,6 @@ supported by iRedMail.

That's all.


-

If you're upgrading iRedAPD-1.6.0 (or older release) to iRedAPD-1.7.0 (or newer -release), please create new SQL database iredapd with sql commands below:

-
-

Note: You can create a strong password for SQL user with command: -eval </dev/urandom tr -dc A-Za-z0-9 | (head -c $1 &>/dev/null || head -c 30)

-
- -
$ mysql -u root -p
-
-sql> CREATE DATABASE IF NOT EXISTS iredapd DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
-sql> USE iredapd;
-sql> SOURCE /opt/iredapd/SQL/iredapd.mysql;
-sql> GRANT ALL ON iredapd.* TO "iredapd"@"localhost" IDENTIFIED BY "passwd";
-sql> FLUSH PRIVILEGES;
-
- -

Now update iRedAPD SQL database name, sql user name, and password in iRedAPD -config file /opt/iredapd/settings.py (all parameters start with iredapd_db_).

- -
# cp /opt/iredapd/SQL/iredapd.pgsql /tmp/
-# chmod 0755 /tmp/iredapd.pgsql
-
----- Switch to system user `postgres` here ----
-
-$ psql
-
--- Create database
-sql> CREATE DATABASE iredapd WITH TEMPLATE template0 ENCODING 'UTF8';
-
--- Create user
-sql> CREATE USER iredapd WITH ENCRYPTED PASSWORD 'passwd' NOSUPERUSER NOCREATEDB NOCREATEROLE;
-sql> ALTER DATABASE iredapd OWNER TO iredapd;
-
--- Import SQL template
-sql> \c iredapd;
-sql> \i /tmp/iredapd.pgsql;
-
--- Grant permissions
-sql> GRANT ALL ON throttle,throttle_tracking TO iredapd;
-sql> GRANT ALL ON throttle_id_seq,throttle_tracking_id_seq TO iredapd;
-
- -

Now update iRedAPD SQL database name, sql user name, and password in iRedAPD -config file /opt/iredapd/settings.py (all parameters start with iredapd_db_).

-

Important notes: