Fix enabling ramdisk on RHEL and Suse

This commit is contained in:
Manuel Dalla Lana 2016-10-18 11:20:11 +02:00
parent f1da730931
commit fcc9d5a3de
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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