Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
408e8fee
Commit
408e8fee
authored
14 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Removed useless code
parent
1e40cec3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build/deb/postinst
+5
-30
5 additions, 30 deletions
build/deb/postinst
with
5 additions
and
30 deletions
build/deb/postinst
+
5
−
30
View file @
408e8fee
...
...
@@ -20,29 +20,6 @@ set -e
db_version 2.0
#
# Description: Verifies that the env module is loaded in the apache config file.
# Needs: $server the apache server to use,
# anything that matches /etc/$server/*.conf
#
env_enable
()
{
envverm
=
"env_module"
if
grep
-e
"^[[:space:]]*#[[:space:]]*LoadModule[[:space:]]
\+
$envverm
"
/etc/
$server
/httpd.conf
>
/dev/null 2>&1
;
then
# Uncommenting
sed
-e
"s#
\(
[[:space:]]*
\)\#
[[:space:]]
\+\(
LoadModule
$envverm
\)
#
\1\2
#"
/etc/
$server
/httpd.conf
>
/etc/
$server
/httpd.conf.tmp
status
=
uncomment
if
grep
-e
"^[[:space:]]*LoadModule[[:space:]]
\+
$envverm
"
/etc/
$server
/httpd.conf.tmp
>
/dev/null 2>&1
;
then
# Uncomment successful.
cp
/etc/
$server
/httpd.conf /etc/
$server
/httpd.conf.back
>
/dev/null 2>&1
mv
/etc/
$server
/httpd.conf.tmp /etc/
$server
/httpd.conf
else
# Uncomment unsuccessful.
status
=
error
rm
/etc/
$server
/httpd.conf.tmp
fi
fi
}
echo
Run the postinst script
...
...
@@ -93,18 +70,15 @@ case "$1" in
Both
)
webservers
=
"apache2 apache2-ssl"
;;
*
)
webservers
=
"apache2 apache2-ssl"
;;
esac
# Define variable phpver and phpini
.
/usr/share/wwwconfig-common/php.get
# Set up web server.
for
server
in
$webservers
;
do
echo
Complete config of server
$server
env_enable
# Add info for PHP (might be obsolete)
typestr
=
'application/x-httpd-php'
extension
=
'.php'
.
/usr/share/wwwconfig-common/apache-addtype_all.sh
#
typestr='application/x-httpd-php'
#
extension='.php'
#
. /usr/share/wwwconfig-common/apache-addtype_all.sh
# Enable PHP module (might be obsolete)
#. /usr/share/wwwconfig-common/apache-php.sh
...
...
@@ -152,7 +126,7 @@ case "$1" in
fileorig
=
"/usr/share/dolibarr/build/deb/dolibarr.desktop"
target
=
"/usr/share/applications/"
cp
-p
$fileorig
$target
# Not sure this one is usefull
e
# Not sure this one is usefull
if
test
-x
/usr/bin/update-menus
;
then
update-menus
;
fi
# TODO Create the file to force parameters in Web installer
...
...
@@ -173,6 +147,7 @@ case "$1" in
# Another way to restart
for
server
in
$servers
;
do
if
[
-x
/usr/sbin/invoke-rc.d
]
;
then
# This on works with Debian 5
invoke-rc.d
$server
reload
||
true
else
/etc/init.d/
$server
reload
||
true
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment