Skip to content

Commit 9c1386e

Browse files
author
thom
committed
Use nofail instead of deprecated nobootwait (#5131)
1 parent 77356ce commit 9c1386e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ function update($event_name, $data) {
778778
$app->system->chmod($data['new']['document_root'].'/'.$log_folder, 0755);
779779
$app->system->exec_safe('mount --bind ? ?', '/var/log/ispconfig/httpd/'.$data['new']['domain'], $data['new']['document_root'].'/'.$log_folder);
780780
//* add mountpoint to fstab
781-
$fstab_line = '/var/log/ispconfig/httpd/'.$data['new']['domain'].' '.$data['new']['document_root'].'/'.$log_folder.' none bind,nobootwait';
781+
$fstab_line = '/var/log/ispconfig/httpd/'.$data['new']['domain'].' '.$data['new']['document_root'].'/'.$log_folder.' none bind,nofail';
782782
$fstab_line .= @($web_config['network_filesystem'] == 'y')?',_netdev 0 0':' 0 0';
783783
$app->system->replaceLine('/etc/fstab', $fstab_line, $fstab_line, 1, 1);
784784
}

server/plugins-available/nginx_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ function update($event_name, $data) {
619619
$app->system->chmod($data['new']['document_root'].'/'.$log_folder, 0755);
620620
$app->system->exec_safe('mount --bind ? ?', '/var/log/ispconfig/httpd/'.$data['new']['domain'], $data['new']['document_root'].'/'.$log_folder);
621621
//* add mountpoint to fstab
622-
$fstab_line = '/var/log/ispconfig/httpd/'.$data['new']['domain'].' '.$data['new']['document_root'].'/'.$log_folder.' none bind,nobootwait';
622+
$fstab_line = '/var/log/ispconfig/httpd/'.$data['new']['domain'].' '.$data['new']['document_root'].'/'.$log_folder.' none bind,nofail';
623623
$fstab_line .= @($web_config['network_filesystem'] == 'y')?',_netdev 0 0':' 0 0';
624624
$app->system->replaceLine('/etc/fstab', $fstab_line, $fstab_line, 1, 1);
625625
}

0 commit comments

Comments
 (0)