Commit 11f56521 authored by Ad Schellevis's avatar Ad Schellevis

Merge branch 'master' of ssh://github.com/opnsense/core

parents bb55bc37 e28efdc5
......@@ -7,8 +7,10 @@ umount:
umount -f "<above>:${.CURDIR}/src"
install:
mkdir -p ${DESTDIR}/usr/local
cp -r ${.CURDIR}/src/* ${DESTDIR}/usr/local
@mkdir -p ${DESTDIR}/usr/local
@cp -r ${.CURDIR}/src/* ${DESTDIR}/usr/local
@(cd ${.CURDIR}/src; find * -type f) | \
xargs -n1 printf "/usr/local/%s\n"
lint:
find ${.CURDIR}/src -name "*.class" -print0 | xargs -0 -n1 php -l
......
#!/bin/sh
pkg upgrade -y > /tmp/pkg_upgrade.progress &
echo '***DONE***' >> /tmp/pkg_upgrade.progress
rm /tmp/pkg_upgrade.progress
pkg_running=`ps -x | grep "pkg " | grep -v "grep"`
if [ "$pkg_running" == "" ]; then
if [ -f /tmp/pkg_upgrade.progress ]; then
# Remove leftovers from previous upgrade first
rm /tmp/pkg_upgrade.progress
fi
# start pkg upgrade
pkg upgrade -y > /tmp/pkg_upgrade.progress
echo '***DONE***' >> /tmp/pkg_upgrade.progress
else
echo 'Upgrade already in progress'
echo '***DONE***'
fi
......@@ -52,7 +52,7 @@ if($_POST['action'] == 'pkg_upgrade') {
$shell_output = array();
$shell = new Core\Shell();
// execute shell command and collect (only valid) info into named array
$shell->exec("/usr/local/opnsense/scripts/pkg_upgrade.sh &",false,false,$shell_output);
$shell->exec("/usr/local/opnsense/scripts/pkg_upgrade.sh&",false,false,$shell_output);
}
if($_POST['action'] == 'update_status' ) {
......
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