You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ($conf['postfix']['installed'] == true && strtolower($this->simple_query('Symlink ISPConfig SSL certs to Postfix?', array('y', 'n'), 'y','ispconfig_postfix_ssl_symlink')) == 'y') {
3053
+
// Extend LE SSL certs to postfix
3054
+
if ($conf['postfix']['installed'] == true && strtolower($this->simple_query('Symlink ISPConfig SSL certs to Postfix?', array('y', 'n'), 'y','ispconfig_postfix_ssl_symlink')) == 'y') {
3050
3055
3051
-
// Define folder, file(s)
3052
-
$cf = $conf['postfix'];
3053
-
$postfix_dir = $cf['config_dir'];
3054
-
if(!is_dir($postfix_dir)) $this->error("The Postfix configuration directory '$postfix_dir' does not exist.");
3055
-
$smtpd_crt = $postfix_dir.'/smtpd.cert';
3056
-
$smtpd_key = $postfix_dir.'/smtpd.key';
3056
+
// Define folder, file(s)
3057
+
$cf = $conf['postfix'];
3058
+
$postfix_dir = $cf['config_dir'];
3059
+
if(!is_dir($postfix_dir)) $this->error("The Postfix configuration directory '$postfix_dir' does not exist.");
3060
+
$smtpd_crt = $postfix_dir.'/smtpd.cert';
3061
+
$smtpd_key = $postfix_dir.'/smtpd.key';
3057
3062
3058
-
// Backup existing postfix ssl files
3059
-
if (file_exists($smtpd_crt)) rename($smtpd_crt, $smtpd_crt . '-' .$date->format('YmdHis') . '.bak');
3060
-
if (file_exists($smtpd_key)) rename($smtpd_key, $smtpd_key . '-' .$date->format('YmdHis') . '.bak');
3063
+
// Backup existing postfix ssl files
3064
+
if (file_exists($smtpd_crt)) rename($smtpd_crt, $smtpd_crt . '-' .$date->format('YmdHis') . '.bak');
3065
+
if (file_exists($smtpd_key)) rename($smtpd_key, $smtpd_key . '-' .$date->format('YmdHis') . '.bak');
3061
3066
3062
-
// Create symlink to ISPConfig SSL files
3063
-
symlink($ssl_crt_file, $smtpd_crt);
3064
-
symlink($ssl_key_file, $smtpd_key);
3065
-
}
3067
+
// Create symlink to ISPConfig SSL files
3068
+
symlink($ssl_crt_file, $smtpd_crt);
3069
+
symlink($ssl_key_file, $smtpd_key);
3070
+
}
3066
3071
3067
-
// Extend LE SSL certs to pureftpd
3068
-
if ($conf['pureftpd']['installed'] == true && strtolower($this->simple_query('Symlink ISPConfig SSL certs to Pure-FTPd? Creating dhparam file may take some time.', array('y', 'n'), 'y','ispconfig_pureftpd_ssl_symlink')) == 'y') {
3072
+
// Extend LE SSL certs to pureftpd
3073
+
if ($conf['pureftpd']['installed'] == true && strtolower($this->simple_query('Symlink ISPConfig SSL certs to Pure-FTPd? Creating dhparam file may take some time.', array('y', 'n'), 'y','ispconfig_pureftpd_ssl_symlink')) == 'y') {
0 commit comments