File tree 3 files changed +38
-9
lines changed
3 files changed +38
-9
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to this project will be documented in this file, in reverse chronological order by release.
4
4
5
+ ## 1.0.1 - TBD
6
+
7
+ Initial release.
8
+
9
+ ### Added
10
+
11
+ - Nothing.
12
+
13
+ ### Changed
14
+
15
+ - Apply patches before build of configuration files.
16
+
17
+ ### Deprecated
18
+
19
+ - Nothing.
20
+
21
+ ### Removed
22
+
23
+ - Nothing.
24
+
25
+ ### Fixed
26
+
27
+ - Listener sample for overriding of default ` config.php ` configuration file.
28
+ - Useless import of the ` File::Temp ` package (package handler).
29
+ - CS fixes
30
+
5
31
## 1.0.0 - 20190403
6
32
7
33
Initial release.
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ package Package::WebFtpClients::MonstaFTP::Handler;
26
26
use strict;
27
27
use warnings;
28
28
use File::Spec;
29
- use File::Temp;
30
29
use iMSCP::Boolean;
31
30
use iMSCP::Cwd ' $CWD' ;
32
31
use iMSCP::Debug ' error' ;
@@ -77,9 +76,9 @@ sub install
77
76
78
77
local $CWD = $: :imscpConfig{' GUI_ROOT_DIR' };
79
78
80
- my $rs = $self -> _buildConfigFiles();
79
+ my $rs = $self -> _applyPatches();
80
+ $rs ||= $self -> _buildConfigFiles();
81
81
$rs ||= $self -> _buildHttpdConfigFile();
82
- $rs ||= $self -> _applyPatches();
83
82
}
84
83
85
84
=item postinstall( )
@@ -107,7 +106,7 @@ sub postinstall
107
106
" $CWD /public/tools/monstaftp"
108
107
) ) {
109
108
error( sprintf (
110
- " Couldn't create symlink for MonstaFTP Web-based FTP client"
109
+ " Couldn't create symlink for the MonstaFTP Web-based FTP client"
111
110
));
112
111
return 1;
113
112
}
@@ -208,7 +207,7 @@ sub _init
208
207
209
208
=item _buildConfigFiles( )
210
209
211
- Build PhpMyadminConfiguration files
210
+ Build MonstaFTP configuration files
212
211
213
212
Return int 0 on success, other on failure
214
213
@@ -291,11 +290,11 @@ sub _buildConfigFiles
291
290
-> pretty( TRUE )
292
291
-> encode( $data )
293
292
);
294
- $rs = $ file-> save();
293
+ $file -> save();
295
294
};
296
295
if ( $@ ) {
297
296
error( $@ );
298
- return 1;
297
+ $rs = 1;
299
298
}
300
299
301
300
$rs ;
Original file line number Diff line number Diff line change 8
8
*
9
9
* Perl code:
10
10
*
11
+ * Package Listener::MonstaFTP::CustomConfigFile;
12
+ *
13
+ * use strict;
14
+ * use warnings;
11
15
* use iMSCP::EventManager;
12
16
* use iMSCP::File;
13
17
*
20
24
*
21
25
* # Load custom MonstaFTP configuration file into the $cfgTplContent
22
26
* # variable.
23
- * return 1 unless defined ${ $cfgTplContent } = iMSCP::File->new(
27
+ * return 1 unless defined( ${ $cfgTplContent } = iMSCP::File->new(
24
28
* filename => 'path/to/your/monstaftp/conf/file'
25
- * )->get();
29
+ * )->get() ) ;
26
30
*
27
31
* 0;
28
32
* });
You can’t perform that action at this time.
0 commit comments