From fcc9d5a3de14233df94370644f0e1b634e589b68 Mon Sep 17 00:00:00 2001 From: Manuel Dalla Lana Date: Tue, 18 Oct 2016 11:20:11 +0200 Subject: [PATCH] Fix enabling ramdisk on RHEL and Suse --- rhel/install.sh | 2 +- suse/install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rhel/install.sh b/rhel/install.sh index f4fdc34..f9466cb 100644 --- a/rhel/install.sh +++ b/rhel/install.sh @@ -749,7 +749,7 @@ else echo "tmpfs ${DISK} tmpfs rw,size=${RAMDISKSIZE}M 0 0" >> /etc/fstab echo "Enabling ramdisk sync ..."; if [ -f '/etc/MailScanner/defaults' ]; then - OLD="^#ramdisk_sync=1"; + OLD="^ramdisk_sync=0"; NEW="ramdisk_sync=1"; sed -i "s/${OLD}/${NEW}/g" /etc/MailScanner/defaults fi diff --git a/suse/install.sh b/suse/install.sh index b684e73..c181c6b 100644 --- a/suse/install.sh +++ b/suse/install.sh @@ -481,7 +481,7 @@ else echo "tmpfs ${DISK} tmpfs rw,size=${RAMDISKSIZE}M 0 0" >> /etc/fstab echo "Enabling ramdisk sync ..."; if [ -f '/etc/MailScanner/defaults' ]; then - OLD="^#ramdisk_sync=1"; + OLD="^ramdisk_sync=0"; NEW="ramdisk_sync=1"; sed -i "s/${OLD}/${NEW}/g" /etc/MailScanner/defaults fi