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
c86d548b
Commit
c86d548b
authored
13 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Work on debian package
parent
efb60ab9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
build/deb/changelog
+1
-1
1 addition, 1 deletion
build/deb/changelog
build/deb/config
+25
-20
25 additions, 20 deletions
build/deb/config
build/deb/postinst
+2
-10
2 additions, 10 deletions
build/deb/postinst
build/deb/postrm
+3
-1
3 additions, 1 deletion
build/deb/postrm
with
31 additions
and
32 deletions
build/deb/changelog
+
1
−
1
View file @
c86d548b
...
...
@@ -4,6 +4,6 @@ dolibarr (3.1.0-1.1) unstable; urgency=low
* New upstream release.
closes: bug#634783
--
Laurent Destailleur <eldy@users.sourceforge.net
> Mon, 30 Jul 2011 12:00:00 +0100
--
Dolibarr team <contact@dolibarr.org
> Mon, 30 Jul 2011 12:00:00 +0100
# For a changelog file dedicated to users, see /usr/share/doc/dolibarr/UserChangeLog.gz file.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
build/deb/config
+
25
−
20
View file @
c86d548b
...
...
@@ -13,25 +13,29 @@ db_version 2.0
echo
Run the dolibarr config script
# Rotate old configuration
if
[
"
$1
"
=
"reconfigure"
]
;
then
config
=
"/etc/dolibarr/apache.conf"
for
i
in
$(
seq
8
-1
0
)
;
do
if
[
-f
${
config
}
.
$i
]
;
then
mv
${
config
}
.
$i
${
config
}
.
$((
$i
+
1
))
fi
done
mv
${
config
}
${
config
}
.0
fi
#if [ "$1" = "reconfigure" ] ; then
# config="/etc/dolibarr/apache.conf"
# if [ -f $config ] ; then
# for i in $(seq 8 -1 0) ; do
# if [ -f ${config}.$i ] ; then
# mv ${config}.$i ${config}.$(($i +1))
# fi
# done
# mv ${config} ${config}.0
# fi
#fi
# Rotate old configuration
if
[
"
$1
"
=
"reconfigure"
]
;
then
config
=
"/etc/dolibarr/lighttpd.conf"
for
i
in
$(
seq
8
-1
0
)
;
do
if
[
-f
${
config
}
.
$i
]
;
then
mv
${
config
}
.
$i
${
config
}
.
$((
$i
+
1
))
fi
done
mv
${
config
}
${
config
}
.0
fi
#if [ "$1" = "reconfigure" ] ; then
# config="/etc/dolibarr/lighttpd.conf"
# if [ -f $config ] ; then
# for i in $(seq 8 -1 0) ; do
# if [ -f ${config}.$i ] ; then
# mv ${config}.$i ${config}.$(($i +1))
# fi
# done
# mv ${config} ${config}.0
# fi
#fi
db_capb backup
...
...
@@ -39,8 +43,9 @@ db_capb backup
db_title
"dolibarr"
||
true
# Ask for web server type.
#db_input critical "dolibarr/webserver" || true
# Ask if we must delete database
echo
"Ask for web server to setup"
db_input critical dolibarr/reconfigure-webserver
||
true
if
db_go
;
then
okcancel
=
"1"
...
...
This diff is collapsed.
Click to expand it.
build/deb/postinst
+
2
−
10
View file @
c86d548b
...
...
@@ -20,7 +20,7 @@ lighttpd_install() {
if
[
!
-f
/etc/lighttpd/conf-available/50-dolibarr.conf
]
;
then
if
which lighty-enable-mod
>
/dev/null 2>&1
;
then
echo
"Add link for Lighttpd config file"
ln
-s
/etc/dolibarr/lighttpd.conf /etc/lighttpd/conf-available/50-dolibarr.conf
ln
-
f
s
/etc/dolibarr/lighttpd.conf /etc/lighttpd/conf-available/50-dolibarr.conf
# We enabled it
lighty-enable-mod dolibarr fastcgi-php
else
...
...
@@ -33,7 +33,7 @@ apache_install() {
webserver
=
$1
if
[
-d
/etc/
$webserver
/conf.d
]
&&
[
!
-e
/etc/
$webserver
/conf.d/dolibarr.conf
]
;
then
echo
"Add link for Apache config file"
ln
-s
/etc/dolibarr/apache.conf /etc/
$webserver
/conf.d/dolibarr.conf
ln
-
f
s
/etc/dolibarr/apache.conf /etc/
$webserver
/conf.d/dolibarr.conf
fi
}
...
...
@@ -92,14 +92,6 @@ case "$1" in
fi
# Reconfigure web server
db_reset dolibarr/reconfigure-webserver
# Ask if we must delete database
echo
"Ask for web server to setup"
db_input critical dolibarr/reconfigure-webserver
||
true
db_go
||
true
db_get dolibarr/reconfigure-webserver
webservers
=
"
$RET
"
...
...
This diff is collapsed.
Click to expand it.
build/deb/postrm
+
3
−
1
View file @
c86d548b
...
...
@@ -65,10 +65,12 @@ case "$1" in
# Call when we upgrade
upgrade
)
echo
"postrm upgrade"
;;
# Call when we uninstall
remove
)
echo
"postrm remove"
rm
-f
$lockfile
# Reconfigure web server
...
...
@@ -98,7 +100,7 @@ case "$1" in
# Call when we uninstall and purge
purge
)
echo
"postrm purge
webservers=
$webservers
"
echo
"postrm purge"
# Ask if we must delete database
echo
"postrm db_input dolibarr/postrm"
...
...
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