mirror of
https://github.com/MailScanner/v5.git
synced 2024-11-10 17:35:06 +08:00
Fix enabling ramdisk on RHEL and Suse
This commit is contained in:
parent
f1da730931
commit
fcc9d5a3de
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue