From 55cdc501c9fe51202da2f23f960c658e3d9a32f8 Mon Sep 17 00:00:00 2001 From: Dennis Neuhaeuser Date: Mon, 13 Apr 2015 21:16:13 +0200 Subject: create mountpoint for ramdisk with PHP mkdir --- config/squidGuard/squidguard_configurator.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'config/squidGuard') diff --git a/config/squidGuard/squidguard_configurator.inc b/config/squidGuard/squidguard_configurator.inc index ca66d89a..551ca542 100644 --- a/config/squidGuard/squidguard_configurator.inc +++ b/config/squidGuard/squidguard_configurator.inc @@ -2038,15 +2038,16 @@ function squidguard_ramdisk($enable) # delete old squidguard ramdisk if (file_exists("/dev/md15")) { - mwexec("umount -f " . SQUIDGUARD_TMP); + mwexec("/sbin/umount -f " . SQUIDGUARD_TMP); mwexec("sleep 1"); - mwexec("mdconfig -d -u 15"); + mwexec("/sbin/mdconfig -d -u 15"); } if ($enable === true) { # create temp ramdisk # size 300Mb very nice for work with Archive < 30Mb # this is size use physical RAM + Swap file + mkdir(SQUIDGUARD_TMP); mwexec("/sbin/mdmfs -s {$ramsize}M md15 " . SQUIDGUARD_TMP); mwexec("chmod 1777 " . SQUIDGUARD_TMP); } -- cgit v1.2.3