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
70c262a9
Commit
70c262a9
authored
11 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Avoid duplicate a2en.
No pass into log.
parent
77b3c9d2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build/debian/dolibarr.postinst
+6
-5
6 additions, 5 deletions
build/debian/dolibarr.postinst
build/debian/dolibarr.postrm
+4
-3
4 additions, 3 deletions
build/debian/dolibarr.postrm
with
10 additions
and
8 deletions
build/debian/dolibarr.postinst
+
6
−
5
View file @
70c262a9
...
...
@@ -41,11 +41,6 @@ enable_install_upgrade_wizard() {
}
apache_install
()
{
# Apache 2 setup
if
which a2enmod
>
/dev/null 2>&1
;
then
a2enmod
alias
fi
webserver
=
$1
if
which a2enconf
>
/dev/null 2>&1
;
then
# a2enconf exists for ubuntu only
...
...
@@ -92,6 +87,12 @@ case "$1" in
else
echo
This is not a first
install
fi
# Apache 2 setup
if
which a2enmod
>
/dev/null 2>&1
;
then
a2enmod
alias
fi
apache_install
lighttpd_install
...
...
This diff is collapsed.
Click to expand it.
build/debian/dolibarr.postrm
+
4
−
3
View file @
70c262a9
...
...
@@ -177,18 +177,19 @@ case "$1" in
passopt
=
"--password='"
`
echo
"
$dbadmpass
"
|
sed
-e
"s/'/'"
'"'
"'"
'"'
"'/g"
`
"'"
fi
mysqlcmd
=
"mysql
$hostopt
$passopt
-u
$dbadmin
"
mysqlcmdnopass
=
"mysql
$hostopt
-u
$dbadmin
"
# Now run the drop user
if
eval
$mysqlcmd
-f
-e
"
\"
DROP USER '
$dbuser
'@'localhost';
\"
"
;
then
echo
postrm Database login
$dbuser
@localhost removed
else
error
=
"Unable to run
$mysqlcmd
-f -e
\"
DROP USER '
$dbuser
'@'localhost';
\"
"
error
=
"Unable to run
$mysqlcmd
nopass
-f -e
\"
DROP USER '
$dbuser
'@'localhost';
\"
"
echo
postrm
$error
fi
if
eval
$mysqlcmd
-f
-e
"
\"
DROP USER '
$dbuser
'@'%';
\"
"
;
then
echo
postrm Database login
$dbuser
@% removed
else
error
=
"Unable to run
$mysqlcmd
-f -e
\"
DROP USER '
$dbuser
'@'%';
\"
"
error
=
"Unable to run
$mysqlcmd
nopass
-f -e
\"
DROP USER '
$dbuser
'@'%';
\"
"
echo
postrm
$error
fi
...
...
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