Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
753bb32e
Commit
753bb32e
authored
Dec 29, 2014
by
Jos Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
And more upgrade stuff...
parent
971a7c50
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
pkg_upgrade.sh
src/opnsense/scripts/pkg_upgrade.sh
+2
-1
system_firmware_check.php
src/www/system_firmware_check.php
+1
-1
No files found.
src/opnsense/scripts/pkg_upgrade.sh
View file @
753bb32e
...
...
@@ -31,7 +31,8 @@ if [ "$pkg_running" == "" ]; then
rm
/tmp/pkg_upgrade.progress
fi
# start pkg upgrade
pkg upgrade
-y
>
/tmp/pkg_upgrade.progress
echo
'***STARTING UPGRADE***'
>
/tmp/pkg_upgrade.progress
pkg upgrade
-y
>>
/tmp/pkg_upgrade.progress
echo
'***DONE***'
>>
/tmp/pkg_upgrade.progress
else
echo
'Upgrade already in progress'
...
...
src/www/system_firmware_check.php
View file @
753bb32e
...
...
@@ -50,7 +50,7 @@ if($_POST['action'] == 'pkg_update') {
if
(
$_POST
[
'action'
]
==
'pkg_upgrade'
)
{
/* Setup Shell variables */
$shell_output
=
array
();
$shell
=
new
OPsense\Core\Shell
();
$shell
=
new
OP
N
sense\Core\Shell
();
// execute shell command and collect (only valid) info into named array
$shell
->
exec
(
"/usr/local/opnsense/scripts/pkg_upgrade.sh > /dev/null 2 > /dev/null < /dev/null &"
,
false
,
false
,
$shell_output
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment