tbrehm
2012-11-30 b7e1d8e64b21bab43b705f57e0b679bfe659d5fb
Fixed a log mount error.
2 files modified
6 ■■■■■ changed files
server/plugins-available/apache2_plugin.inc.php 3 ●●●●● patch | view | raw | blame | history
server/plugins-available/nginx_plugin.inc.php 3 ●●●●● patch | view | raw | blame | history
server/plugins-available/apache2_plugin.inc.php
@@ -478,6 +478,9 @@
            //* remove old log mount
            $fstab_line = '/var/log/ispconfig/httpd/'.$data['old']['domain'].' '.$data['old']['document_root'].'/'.$log_folder.'    none    bind';
            $app->system->removeLine('/etc/fstab',$fstab_line);
            //* Unmount log directory
            exec('umount '.escapeshellarg($data['old']['document_root'].'/'.$log_folder));
        }
        
        //* Create the log dir if nescessary and mount it
server/plugins-available/nginx_plugin.inc.php
@@ -492,6 +492,9 @@
            //* remove old log mount
            $fstab_line = '/var/log/ispconfig/httpd/'.$data['old']['domain'].' '.$data['old']['document_root'].'/'.$log_folder.'    none    bind';
            $app->system->removeLine('/etc/fstab',$fstab_line);
            //* Unmount log directory
            exec('umount '.escapeshellarg($data['old']['document_root'].'/'.$log_folder));
        }
        
        //* Create the log dir if nescessary and mount it