diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5e3c281b79afa396fe05732cddd4dbce004ed162..fbda898cec3335a43c535349413eb2f8f1a27d0d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,13 +22,13 @@ make-test: script: - export DEBIAN_FRONTEND=noninteractive - # Install IDMS Linux Enterprise + # Install IDMS Linux Enterprise + - apt-get update + - apt-get install -y wget + - echo "deb http://cdn.idms-linux.org/enterprise/ jessie enterprise" > /etc/apt/sources.list.d/idms-linux-enterprise.list + - wget -O "-" -q "https://cdn.idms-linux.org/enterprise/enterprise.asc" | apt-key add "-" + - apt-get update - - apt-get install -y wget - - echo "deb http://cdn.idms-linux.org/enterprise/ jessie enterprise" > /etc/apt/sources.list.d/idms-linux-enterprise.list - - wget -O- -q http://cdn.idms-linux.org/enterprise/enterprise.asc | apt-key add - - - - atp-get update - apt-get dist-upgrade -y - apt-get install -y make - apt-get install -y libdatetime-perl libdatetime-timezone-perl libcrypt-openssl-rsa-perl libcrypt-openssl-x509-perl libjson-perl libwww-perl libcrypt-openssl-pkcs10-perl @@ -43,12 +43,12 @@ make-install: script: - export DEBIAN_FRONTEND=noninteractive - # Install IDMS Linux Enterprise + # Install IDMS Linux Enterprise - apt-get update - - apt-get install -y wget - - echo "deb http://cdn.idms-linux.org/enterprise/ jessie enterprise" > /etc/apt/sources.list.d/idms-linux-enterprise.list - - wget -O- -q http://cdn.idms-linux.org/enterprise/enterprise.asc | apt-key add - - + - apt-get install -y wget + - echo "deb http://cdn.idms-linux.org/enterprise/ jessie enterprise" > /etc/apt/sources.list.d/idms-linux-enterprise.list + - wget -O "-" -q "https://cdn.idms-linux.org/enterprise/enterprise.asc" | apt-key add "-" + - apt-get update - apt-get dist-upgrade -y - apt-get install -y make diff --git a/awit-certmaster b/awit-certmaster index 044ee419d2af7b5359d41097ab7876e643a17eea..0c80b876422972ac908092136425bff1d4d5b100 100755 --- a/awit-certmaster +++ b/awit-certmaster @@ -114,7 +114,7 @@ sub accountInit # Make sure the dir exists... my $dir = "/etc/awit-certmaster"; if (! -d $dir) { - my @created = make_path($dir,{ 'mode' => 0700 }); + my @created = make_path($dir,{ 'mode' => oct(700) }); } # Check if the dir was created if (! -d $dir) { @@ -245,7 +245,9 @@ sub webserverCheckApache $self->logger("INFO","APACHE: Processing vhost '%s'",$vhostName); # Open config file + ## no critic (RequireBriefOpen) if (open(my $FH,'<',$vhost->{'config'})) { + ## use critic # Read in each line my @serverNames = (); while (my $line = <$FH>) { @@ -341,7 +343,9 @@ sub webserverCheckNginx $self->logger("INFO","NGINX: Processing vhost '%s'",$vhostName); # Open config file + ## no critic (RequireBriefOpen) if (open(my $FH,'<',$vhost->{'config'})) { + ## use critic # Read in each line my @serverNames = (); while (my $line = <$FH>) { @@ -869,7 +873,9 @@ sub _parse_x509_datetime +## no critic (ProhibitMultiplePackages) package AWIT::CertMaster::LetsEncrypt; +## use critic use strict; @@ -915,7 +921,7 @@ END { # CONSTANTS -sub NID_SUBJECT_ALT_NAME { 85; } +sub NID_SUBJECT_ALT_NAME { return 85; } @@ -1483,9 +1489,9 @@ sub leHandleChallenge $self->logger("INFO","LE: - Please add DNS entry: _acme-challenge.%s IN TXT '%s'",$domain,$dnsKey); - print STDERR "Press when its added..."; +# print STDERR "Press when its added..."; - my $something = ; +# my $something = ; # @@ -1525,7 +1531,7 @@ sub leHandleChallenge # Make sure the dir exists... umask(0022); if (! -d $dir) { - my @created = make_path($dir,{ 'mode' => 0755 }); + my @created = make_path($dir,{ 'mode' => oct(755) }); } # Check if the dir was created if (! -d $dir) { @@ -1734,7 +1740,10 @@ sub _leDirectoryLinks +## no critic (ProhibitMultiplePackages) package main; +## use critic + use strict; use warnings;