File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ use Digest::SHA qw/sha1_hex/;
2121use Term::ANSIColor;
2222use Getopt::Long qw/ :config auto_version/ ;
2323
24- # Check OS release and dovecot availablity.
24+ # Check OS release
2525my $pfa_os_release = ' other_noissue' ;
2626if ( -f " /etc/issue" ) {
2727 if (` grep "Linux 8" /etc/issue` ) { $pfa_os_release = ' jessie' ; }
@@ -36,12 +36,13 @@ if ( $pfa_os_release == 'jessie' ) { $dovecot_package_name = 'dovecot-core'; }
3636my $postfixadminDir = " /var/www/postfixadmin" ;
3737if ( $pfa_os_release == " jessie" ) { $postfixadminDir = " /var/www/html/postfixadmin" ; }
3838
39+ # Check dovecot availability
3940if (availableDovecotVersion() !~ / ^2\. / ){
4041 print STDERR " This script will not work on versions of Dovecot other than 2.x (you have " .availableDovecotVersion()." )\n Exiting.\n " ;
4142 exit 1;
4243}
4344
44-
45+ # Config starts here
4546our $VERSION = " 0.20160423 (Jessie; Dovecot 2.x)" ;
4647
4748my $f_log = ' /tmp/postfixadmin-installer.log' ;
You can’t perform that action at this time.
0 commit comments