File tree Expand file tree Collapse file tree 5 files changed +24
-3
lines changed
Expand file tree Collapse file tree 5 files changed +24
-3
lines changed Original file line number Diff line number Diff line change @@ -1056,6 +1056,13 @@ public function install_ispconfig()
10561056 exec ('chown -R ispconfig:ispconfig ' .escapeshellarg ($ install_dir .'/interface/invoices ' ));
10571057 }
10581058
1059+ //* Create the ispconfig auth log file and set uid/gid
1060+ if (!is_file ($ conf ['ispconfig_log_dir ' ].'/auth.log ' )) {
1061+ touch ($ conf ['ispconfig_log_dir ' ].'/auth.log ' );
1062+ }
1063+ exec ('chown ispconfig:ispconfig ' . $ conf ['ispconfig_log_dir ' ].'/auth.log ' );
1064+ exec ('chmod 660 ' . $ conf ['ispconfig_log_dir ' ].'/auth.log ' );
1065+
10591066 //* Remove Domain module as its functions are available in the client module now
10601067 if (@is_dir ('/usr/local/ispconfig/interface/web/domain ' )) exec ('rm -rf /usr/local/ispconfig/interface/web/domain ' );
10611068
Original file line number Diff line number Diff line change @@ -1032,6 +1032,13 @@ public function install_ispconfig()
10321032 touch ($ conf ['ispconfig_log_dir ' ].'/ispconfig.log ' );
10331033 }
10341034
1035+ //* Create the ispconfig auth log file and set uid/gid
1036+ if (!is_file ($ conf ['ispconfig_log_dir ' ].'/auth.log ' )) {
1037+ touch ($ conf ['ispconfig_log_dir ' ].'/auth.log ' );
1038+ }
1039+ exec ('chown ispconfig:ispconfig ' . $ conf ['ispconfig_log_dir ' ].'/auth.log ' );
1040+ exec ('chmod 660 ' . $ conf ['ispconfig_log_dir ' ].'/auth.log ' );
1041+
10351042 rename ($ install_dir .'/server/scripts/run-getmail.sh ' , '/usr/local/bin/run-getmail.sh ' );
10361043
10371044 if (is_user ('getmail ' )) {
Original file line number Diff line number Diff line change @@ -1098,6 +1098,13 @@ public function install_ispconfig()
10981098 exec ('chown -R ispconfig:ispconfig ' .escapeshellarg ($ install_dir .'/interface/invoices ' ));
10991099 }
11001100
1101+ //* Create the ispconfig auth log file and set uid/gid
1102+ if (!is_file ($ conf ['ispconfig_log_dir ' ].'/auth.log ' )) {
1103+ touch ($ conf ['ispconfig_log_dir ' ].'/auth.log ' );
1104+ }
1105+ exec ('chown ispconfig:ispconfig ' . $ conf ['ispconfig_log_dir ' ].'/auth.log ' );
1106+ exec ('chmod 660 ' . $ conf ['ispconfig_log_dir ' ].'/auth.log ' );
1107+
11011108 //* Remove Domain module as its functions are available in the client module now
11021109 if (@is_dir ('/usr/local/ispconfig/interface/web/domain ' )) exec ('rm -rf /usr/local/ispconfig/interface/web/domain ' );
11031110
Original file line number Diff line number Diff line change @@ -723,7 +723,7 @@ function get_ispconfig_port_number() {
723723 if (is_file ($ ispconfig_vhost_file )) {
724724 $ tmp = file_get_contents ($ ispconfig_vhost_file );
725725 preg_match ($ regex ,$ tmp ,$ matches );
726- $ port_number = intval ($ matches [1 ]);
726+ $ port_number = @ intval ($ matches [1 ]);
727727 if ($ port_number > 0 ) {
728728 return $ port_number ;
729729 } else {
Original file line number Diff line number Diff line change @@ -1962,9 +1962,9 @@ public function install_ispconfig() {
19621962 //* Create the ispconfig auth log file and set uid/gid
19631963 if (!is_file ($ conf ['ispconfig_log_dir ' ].'/auth.log ' )) {
19641964 touch ($ conf ['ispconfig_log_dir ' ].'/auth.log ' );
1965- exec ('chown ispconfig:ispconfig ' . $ conf ['ispconfig_log_dir ' ].'/auth.log ' );
1966- exec ('chmod 660 ' . $ conf ['ispconfig_log_dir ' ].'/auth.log ' );
19671965 }
1966+ exec ('chown ispconfig:ispconfig ' . $ conf ['ispconfig_log_dir ' ].'/auth.log ' );
1967+ exec ('chmod 660 ' . $ conf ['ispconfig_log_dir ' ].'/auth.log ' );
19681968
19691969 if (is_user ('getmail ' )) {
19701970 rename ($ install_dir .'/server/scripts/run-getmail.sh ' ,'/usr/local/bin/run-getmail.sh ' );
You can’t perform that action at this time.
0 commit comments