wok diff postfixadmin/stuff/etc/mysql.d/postfixadmin @ rev 17457
Add icmpshell
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Dec 18 15:59:17 2014 +0100 (2014-12-18) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/postfixadmin/stuff/etc/mysql.d/postfixadmin Thu Dec 18 15:59:17 2014 +0100 1.3 @@ -0,0 +1,9 @@ 1.4 +#!/bin/sh 1.5 + 1.6 +mysqldump postfix > /dev/null 2>&1 || mysql <<EOT 1.7 +CREATE DATABASE postfix; 1.8 +CREATE USER 'postfix'@'localhost' IDENTIFIED BY 'postfix'; 1.9 +GRANT ALL PRIVILEGES ON `postfix` . * TO 'postfix'@'localhost'; 1.10 +EOT 1.11 + 1.12 +chmod -x /etc/mysql.d/postfixadmin