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
2e31042e
Commit
2e31042e
authored
Aug 12, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rc: transition code for new-style extensions ordering
parent
bd182fd5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
rc.php_ini_setup
src/etc/rc.php_ini_setup
+7
-3
No files found.
src/etc/rc.php_ini_setup
View file @
2e31042e
...
...
@@ -76,11 +76,12 @@ touch ${EXTENSIONS_INI}
cp
${
EXTENSIONS_INI
}
${
_EXTENSIONS_INI
}
chmod
644
${
_EXTENSIONS_INI
}
# Clear the .ini file to make sure we are clean
# Clear the .ini files in preparation for the rewrite
rm
-f
/usr/local/etc/php/extensions.ini
rm
-f
/usr/local/etc/php.ini
rm
-f
/usr/local/lib/php.ini
# Fetch the timezone from the XML and set it here
. We set it later too in the running scripts
# Fetch the timezone from the XML and set it here
TIMEZONE
=
Etc/UTC
if
[
-f
/conf/config.xml
]
;
then
TIMEZONE
=
`
cat
/conf/config.xml | egrep
-E
'<timezone>(.*?)</timezone>'
|
awk
-F
'>'
'{print $2}'
|awk
-F
'<'
'{print $1}'
`
...
...
@@ -160,4 +161,7 @@ EOF
# Copy php.ini file to etc/ too (cli)
cp
/usr/local/lib/php.ini /usr/local/etc/php.ini
mv
${
_EXTENSIONS_INI
}
${
EXTENSIONS_INI
}
if
[
!
-f
/usr/local/etc/php/ext-20-gettext.ini
]
;
then
# Only needs a copy for FreeBSD's old style PHP module register
mv
${
_EXTENSIONS_INI
}
${
EXTENSIONS_INI
}
fi
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