Disable nfs insecure locks

This commit is contained in:
Bob Mottram 2016-11-29 13:16:53 +00:00
parent e5b04a2d1f
commit 4d0e030130
1 changed files with 12 additions and 0 deletions

View File

@ -352,6 +352,15 @@ function upgrade_installation {
echo '' echo ''
} }
function disable_nfs_insecure_locks {
apt-get -yq install nfs-kernel-server
if grep 'insecure_locks' /etc/exports; then
sed -i 's|,insecure_locks||g' /etc/exports
sed -i 's|insecure_locks,||g' /etc/exports
exportfs -a
fi
}
function setup_firewall { function setup_firewall {
function_check create_completion_file function_check create_completion_file
create_completion_file create_completion_file
@ -379,6 +388,9 @@ function setup_utils {
function_check remove_bluetooth function_check remove_bluetooth
remove_bluetooth remove_bluetooth
function_check disable_nfs_insecure_locks
disable_nfs_insecure_locks
function_check turn_off_rsys_logging function_check turn_off_rsys_logging
turn_off_rsys_logging turn_off_rsys_logging