Skip to content

Commit 418b41f

Browse files
author
mcramer
committed
Fixed error in path comparison (error.log part missing in path)
1 parent 6ebdab9 commit 418b41f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ function update($event_name,$data) {
651651
$app->system->chmod($data['new']['document_root'].'/tmp',0777);
652652

653653
// Set Log directory to 755 to make the logs accessible by the FTP user
654-
if(realpath($data['new']['document_root'].'/'.$log_folder) == '/var/log/ispconfig/httpd/'.$data['new']['domain'].'/error.log') {
654+
if(realpath($data['new']['document_root'].'/'.$log_folder . '/error.log') == '/var/log/ispconfig/httpd/'.$data['new']['domain'].'/error.log') {
655655
$app->system->chmod($data['new']['document_root'].'/'.$log_folder,0755);
656656
}
657657

@@ -682,7 +682,7 @@ function update($event_name,$data) {
682682
$app->system->chgrp($data['new']['document_root'],'root');
683683
$app->system->chown($data['new']['document_root'].'/cgi-bin',$username);
684684
$app->system->chgrp($data['new']['document_root'].'/cgi-bin',$groupname);
685-
if(realpath($data['new']['document_root'].'/'.$log_folder) == '/var/log/ispconfig/httpd/'.$data['new']['domain'].'/error.log') {
685+
if(realpath($data['new']['document_root'].'/'.$log_folder . '/error.log') == '/var/log/ispconfig/httpd/'.$data['new']['domain'].'/error.log') {
686686
$app->system->chown($data['new']['document_root'].'/'.$log_folder,'root',false);
687687
$app->system->chgrp($data['new']['document_root'].'/'.$log_folder,$groupname,false);
688688
}
@@ -714,15 +714,15 @@ function update($event_name,$data) {
714714
$app->system->chmod($data['new']['document_root'].'/tmp',0777);
715715

716716
// Set Log directory to 755 to make the logs accessible by the FTP user
717-
if(realpath($data['new']['document_root'].'/'.$log_folder) == '/var/log/ispconfig/httpd/'.$data['new']['domain'].'/error.log') {
717+
if(realpath($data['new']['document_root'].'/'.$log_folder . '/error.log') == '/var/log/ispconfig/httpd/'.$data['new']['domain'].'/error.log') {
718718
$app->system->chmod($data['new']['document_root'].'/'.$log_folder,0755);
719719
}
720720

721721
$app->system->chown($data['new']['document_root'],'root');
722722
$app->system->chgrp($data['new']['document_root'],'root');
723723
$app->system->chown($data['new']['document_root'].'/cgi-bin',$username);
724724
$app->system->chgrp($data['new']['document_root'].'/cgi-bin',$groupname);
725-
if(realpath($data['new']['document_root'].'/'.$log_folder) == '/var/log/ispconfig/httpd/'.$data['new']['domain'].'/error.log') {
725+
if(realpath($data['new']['document_root'].'/'.$log_folder . '/error.log') == '/var/log/ispconfig/httpd/'.$data['new']['domain'].'/error.log') {
726726
$app->system->chown($data['new']['document_root'].'/'.$log_folder,'root',false);
727727
$app->system->chgrp($data['new']['document_root'].'/'.$log_folder,$groupname,false);
728728
}

server/plugins-available/nginx_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ function update($event_name,$data) {
634634
$app->system->chmod($data['new']['document_root'].'/tmp',0777);
635635

636636
// Set Log directory to 755 to make the logs accessible by the FTP user
637-
if(realpath($data['new']['document_root'].'/'.$log_folder) == '/var/log/ispconfig/httpd/'.$data['new']['domain'].'/error.log') {
637+
if(realpath($data['new']['document_root'].'/'.$log_folder . '/error.log') == '/var/log/ispconfig/httpd/'.$data['new']['domain'].'/error.log') {
638638
$app->system->chmod($data['new']['document_root'].'/'.$log_folder,0755);
639639
}
640640

0 commit comments

Comments
 (0)