| | |
| | | flags=R user=vmail argv=/usr/bin/maildrop -d ${recipient} ${extension} ${recipient} ${user} ${nexthop} ${sender} |
| | | |
| | | */ |
| | | if(stristr($options,'dont-create-certs')) { |
| | | if(!stristr($options,'dont-create-certs')) { |
| | | // Create the SSL certificate |
| | | $command = "cd ".$conf["dist_postfix_config_dir"]."; openssl req -new -outform PEM -out smtpd.cert -newkey rsa:2048 -nodes -keyout smtpd.key -keyform PEM -days 365 -x509"; |
| | | exec($command); |
| | |
| | | // Database update is a bit brute force and should be rebuild later ;) |
| | | |
| | | // export the current database data |
| | | system("mysqldump -h $conf[mysql_server_host] -u $conf[mysql_server_ispconfig_user] -p$conf[mysql_server_ispconfig_password] -c -t --add-drop-table --add-locks --all --quick --lock-tables $conf[mysql_server_database] > existing_db.sql"); |
| | | system("mysqldump -h $conf[mysql_server_host] -u $conf[mysql_server_ispconfig_user] -p$conf[mysql_server_ispconfig_password] -c -t --add-drop-table --all --quick $conf[mysql_server_database] > existing_db.sql"); |
| | | |
| | | // Delete the old database |
| | | exec("/etc/init.d/mysql stop"); |