summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc9
1 files changed, 8 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index 4782511..c9e80c9 100755
--- a/etc/rc
+++ b/etc/rc
@@ -208,7 +208,14 @@ rm -rf /usr/local/pkg/pf/CVS
/usr/local/sbin/check_reload_status >/dev/null &
echo -n "Pre-caching PHP for faster responses..."
-fetch -q -o /tmp/ http://localhost/preload.php
+CONFIG="/cf/conf/config.xml"
+WORD="https"
+if grep "$WORD" "$CONFIG"
+then
+ fetch -q -o /tmp/ https://localhost/preload.php
+else
+ fetch -q -o /tmp/ http://localhost/preload.php
+fi
rm -f /tmp/phpfast
echo " done."
OpenPOWER on IntegriCloud