Skip to content

Commit

Permalink
Fixed: Could not build local vsftpd package when gpg has been initial…
Browse files Browse the repository at this point in the history
…ized; .changes file cannot be signed

Typo
[ci skip]
  • Loading branch information
nuxwin committed Mar 21, 2016
1 parent c94ee78 commit a8b781d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Expand Up @@ -55,6 +55,7 @@ SERVERS
Added: Own i-MSCP logrorate configuration file for ProFTPD (xferlog file don't need to be rotated)
Added: Own i-MSCP ProFTPD sysvinit script to solve #IP-1402 - (Wheezy, Precise, Trusty)
Fixed: Bad regexp in getTraffic() method leading to unmatching of traffic data (VsFTPd)
Fixed: Could not build local vsftpd package when gpg has been initialized; .changes file cannot be signed
Fixed: Courier sysvinit must not be copied when selected PO server is Dovecot
Fixed: Disabled mod_tls_memcache.c module to avoid weird notice on restart (ProFTPD)
Fixed: ON|OFF string not recognized as boolean value in mysql conffile (MySQL)
Expand Down
16 changes: 8 additions & 8 deletions engine/PerlLib/Servers/ftpd/vsftpd/installer.pm
Expand Up @@ -295,7 +295,7 @@ sub _rebuildVsFTPdDebianPackage
return 1;
}
0;
}, 'Creating build directory for i-MSCP vsftpd package...', 7, 1
}, 'Creating build directory for local vsftpd package...', 7, 1
);

$rs ||= step(
Expand Down Expand Up @@ -369,7 +369,7 @@ sub _rebuildVsFTPdDebianPackage

$rs = $file->set( $fileContent );
$rs ||= $file->save();
}, 'Patching vsftpd source package for i-MSCP...', 7, 4
}, 'Patching vsftpd source package...', 7, 4
);

$rs ||= step(
Expand All @@ -379,12 +379,12 @@ sub _rebuildVsFTPdDebianPackage
$stderr || 'Unknown error' ) ) if $rs;
return $rs if $rs;

$rs = execute( 'dpkg-buildpackage -b', \$stdout, \$stderr );
error( sprintf( 'Could not build i-MSCP vsftpd package: %s', $stderr || 'Unknown error' ) ) if $rs;
$rs = execute( 'dpkg-buildpackage -b -uc', \$stdout, \$stderr );
error( sprintf( 'Could not build local vsftpd package: %s', $stderr || 'Unknown error' ) ) if $rs;
return $rs if $rs;
debug( $stdout ) if $stdout;
0;
}, 'Building i-MSCP vsftpd package...', 7, 5
}, 'Building local vsftpd package...', 7, 5
);

$rs ||= step(
Expand All @@ -395,7 +395,7 @@ sub _rebuildVsFTPdDebianPackage
}

my $rs = execute( 'dpkg --force-confnew -i vsftpd_*.deb', \my $stdout, \my $stderr );
error( sprintf( 'Could not install i-MSCP vsftpd package: %s', $stderr || 'Unknown error' ) ) if $rs;
error( sprintf( 'Could not install local vsftpd package: %s', $stderr || 'Unknown error' ) ) if $rs;
debug( $stdout ) if $stdout;
return $rs if $rs;

Expand All @@ -404,7 +404,7 @@ sub _rebuildVsFTPdDebianPackage
debug( $stdout ) if $stdout;
debug( $stderr ) if $stderr;
0;
}, 'Installing i-MSCP vsftpd package...', 7, 6
}, 'Installing local vsftpd package...', 7, 6
);

$rs ||= step(
Expand All @@ -415,7 +415,7 @@ sub _rebuildVsFTPdDebianPackage
}

iMSCP::Dir->new( dirname => '/usr/local/src/vsftpd' )->remove();
}, 'Removing i-MSCP vsftpd package build directory', 7, 7
}, 'Removing local vsftpd package build directory', 7, 7
);

endDetail();
Expand Down

0 comments on commit a8b781d

Please sign in to comment.