Commit 61e8c728 authored by Ad Schellevis's avatar Ad Schellevis

move opnsense service code

parent 638c6daf
......@@ -380,8 +380,8 @@ if [ "$PLATFORM" = "nanobsd" -o "$PLATFORM" = "pfSense" ]; then
/usr/local/bin/php -q /usr/local/etc/ecl.php
fi
chmod u+rx /usr/local/opnsense/check_reload_status.py
/usr/bin/nice -n20 /usr/local/opnsense/check_reload_status.py
chmod u+rx /usr/local/opnsense/service/check_reload_status.py
/usr/bin/nice -n20 /usr/local/opnsense/service/check_reload_status.py
sleep 1 # give check_reload_status some time to load to prevent missing socket
# let the PHP-based configuration subsystem set up the system now
......
......@@ -433,7 +433,7 @@ pfSenseupgrade)
ps -a | grep "check_reload_status" | awk '{print $1;}' | kill -9
echo "Installing $IMG." >> /conf/upgrade_log.txt 2>&1
cd / && /usr/bin/tar --exclude=./dev -xzUPf $IMG >> /conf/upgrade_log.txt 2>&1
/usr/bin/nice -n20 /usr/local/opnsense/check_reload_status.py
/usr/bin/nice -n20 /usr/local/opnsense/service/check_reload_status.py
echo "Image installed $IMG." >> /conf/upgrade_log.txt 2>&1
# process custom image if its passed
......
......@@ -51,7 +51,7 @@ fi
PHPMODULES="standard"
# Config read/write
PHPMODULES="$PHPMODULES xml libxml dom"
PHPMODULES="$PHPMODULES SimpleXML xmlreader xmlwriter"
PHPMODULES="$PHPMODULES simplexml xmlreader xmlwriter"
# Downloading via HTTP/FTP (pkg mgr, etc)
PHPMODULES="$PHPMODULES curl date"
# Internationalization
......@@ -79,7 +79,8 @@ PHPMODULES="$PHPMODULES shmop"
PHPMODULES="$PHPMODULES zlib"
# SQLlite & Database
PHPMODULES="$PHPMODULES spl"
PHPMODULES="$PHPMODULES PDO"
PHPMODULES="$PHPMODULES pdo"
PHPMODULES="$PHPMODULES pdo_sqlite"
PHPMODULES="$PHPMODULES sqlite3"
# RADIUS
PHPMODULES="$PHPMODULES radius"
......@@ -128,7 +129,7 @@ post_max_size = 200M
html_errors = Off
zlib.output_compression = Off
zlib.output_compression_level = 1
include_path = ".:/usr/local/etc/inc:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg"
include_path = ".:/usr/local/etc/inc:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg:/usr/local/opnsense/mvc"
display_startup_errors=on
error_reporting = E_ERROR
display_errors=on
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment