wok diff postfixadmin/stuff/etc/mysql.d/postfixadmin @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (2022-05-21)
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	Sat May 21 21:38:29 2022 +0000
     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