Work on debian package
This commit is contained in:
parent
6937359b4f
commit
89e91cab52
@ -7,9 +7,16 @@ This directory contains files used by makepack-dolibarr.pl
|
|||||||
script to build a package, ready to be distributed,
|
script to build a package, ready to be distributed,
|
||||||
with format .DEB (for Debian, Ubuntu, ...).
|
with format .DEB (for Debian, Ubuntu, ...).
|
||||||
|
|
||||||
|
# To build a debian package, you need first
|
||||||
|
# apt-get -i debhelper
|
||||||
|
# apt-get -i dpkg-source
|
||||||
|
# apt-get -i gpg
|
||||||
|
|
||||||
|
|
||||||
# This is standard command to work on Debian packaging:
|
# This is standard command to work on Debian packaging:
|
||||||
#
|
#
|
||||||
|
# gpg --gen-key Generate a GPG key
|
||||||
|
#
|
||||||
# lintian --pedantic -E -I package.deb To test a package
|
# lintian --pedantic -E -I package.deb To test a package
|
||||||
#
|
#
|
||||||
# dpkg -l List all packages
|
# dpkg -l List all packages
|
||||||
@ -20,6 +27,8 @@ with format .DEB (for Debian, Ubuntu, ...).
|
|||||||
#
|
#
|
||||||
# dpkg -L packagename List content of installed package
|
# dpkg -L packagename List content of installed package
|
||||||
# dpkg --purge Remove config files and interactive saved answers
|
# dpkg --purge Remove config files and interactive saved answers
|
||||||
|
#
|
||||||
|
# dpkg-buildpackage -us -uc Build a source and binary package
|
||||||
|
|
||||||
|
|
||||||
To submit a package to Debian:
|
To submit a package to Debian:
|
||||||
|
|||||||
103
build/deb/README.debian
Executable file
103
build/deb/README.debian
Executable file
@ -0,0 +1,103 @@
|
|||||||
|
README (english)
|
||||||
|
--------------------------------
|
||||||
|
Starter documentation
|
||||||
|
--------------------------------
|
||||||
|
|
||||||
|
1) Install Dolibarr
|
||||||
|
2) Upgrade Dolibarr from an older version
|
||||||
|
3) What's new in this version
|
||||||
|
4) What Dolibarr can do
|
||||||
|
5) What Dolibarr can't do yet, todo list
|
||||||
|
|
||||||
|
|
||||||
|
I - DOLIBARR INSTALL
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
Dolibarr files and its dependencies are automatically installed when you install
|
||||||
|
the dolibarr Debian package.
|
||||||
|
|
||||||
|
Once package is installed, go on menu entry called Dolibarr or use your web browser
|
||||||
|
to call page http://localhost/dolibarr
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
II - DOLIBARR UPGRADE
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
Dolibarr files and its dependencies are automatically upgraded when you install
|
||||||
|
the dolibarr Debian package.
|
||||||
|
|
||||||
|
Once new package is installed, go on menu entry called Dolibarr or use your web browser
|
||||||
|
to call page http://localhost/dolibarr
|
||||||
|
If a database upgrade is required, you will be prompted to.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
III - WHAT'S NEW
|
||||||
|
----------------
|
||||||
|
|
||||||
|
See ChangeLog file.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
IV - WHAT DOLIBARR CAN DO
|
||||||
|
-------------------------
|
||||||
|
|
||||||
|
Main modules/features:
|
||||||
|
- Products and services catalog
|
||||||
|
- Customers, Prospects or Suppliers directory
|
||||||
|
- Address book
|
||||||
|
- Stock management
|
||||||
|
- Bank accounts management
|
||||||
|
- Orders management with PDF export
|
||||||
|
- Commercial proposals management with PDF export
|
||||||
|
- Contracts management
|
||||||
|
- Invoices management with PDF export
|
||||||
|
- Payments management
|
||||||
|
- Standing orders management
|
||||||
|
- Shipping management
|
||||||
|
- ECM (Electronic Content Management)
|
||||||
|
- EMailings
|
||||||
|
- Agenda with ical,vcal export for third tools integration
|
||||||
|
- Management of foundation members
|
||||||
|
- Donation management
|
||||||
|
|
||||||
|
Other modules:
|
||||||
|
- Bookmarks management
|
||||||
|
- Can reports Dolibarr events inside Webcalendar or Phenix
|
||||||
|
- Data export tools
|
||||||
|
- LDAP connectivity
|
||||||
|
- Third parties or products categories
|
||||||
|
- ClickToDial phone numbers
|
||||||
|
- RSS
|
||||||
|
|
||||||
|
Miscellanous:
|
||||||
|
- Mutli-user, with several permissions levels for each feature.
|
||||||
|
- Serveral menu managers (can be used by internal users, as a back-office,
|
||||||
|
with a particular menu, or by external users, as a front-office, with
|
||||||
|
another menu and permissions).
|
||||||
|
- Very user friendly and easy to use.
|
||||||
|
- Optional WYSIWYG forms, optional Ajax forms.
|
||||||
|
- Several skins.
|
||||||
|
- Code is highly customizable (a lot of use of modules and submodules).
|
||||||
|
- Works with Mysql 3.1 or higher, experimental support for PostgreSql.
|
||||||
|
- Works with PHP 4.3 or higher.
|
||||||
|
- An easy to understand and maintain code (PHP with no heavy frameworks).
|
||||||
|
- A trigger architecture to allow you to make Dolibarr business events run
|
||||||
|
PHP code to update your own information system.
|
||||||
|
- "NPR VAT Rate" (French particularity for managing VAT in DOM-TOM
|
||||||
|
called "Non Perçue Récupérable").
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
V - WHAT DOLIBARR CAN'T DO YET (TODO LIST)
|
||||||
|
------------------------------------------
|
||||||
|
This is features that Dolibarr does not support completely yet:
|
||||||
|
- Accountancy.
|
||||||
|
- Dolibarr can manage only one currency.
|
||||||
|
- Dolibarr does not support the double Canadian Tax.
|
||||||
|
- Dolibarr does not make coffee (not yet).
|
||||||
|
- Stock management with option increase/decrease on invoice works on
|
||||||
|
warehouse number one only (no way to choose warehouse).
|
||||||
|
- Stock management with option increase/decrease on orders works on
|
||||||
|
warehouse number one only (no way to choose warehouse).
|
||||||
@ -3,10 +3,9 @@ Version: __VERSION__
|
|||||||
Architecture: all
|
Architecture: all
|
||||||
Maintainer: Laurent Destailleur <eldy@users.sourceforge.net>
|
Maintainer: Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
Installed-Size: 61200
|
Installed-Size: 61200
|
||||||
Depends: debconf, xdg-utils, apache2, libapache2-mod-php5, php5, php5-cli, php5-cgi, php5-curl, php5-gd, php5-ldap, php5-mysql, php-pear, php-mail-mime, mysql-server, perl
|
Depends: xdg-utils, apache2, libapache2-mod-php5, php5, php5-cli, php5-cgi, php5-curl, php5-gd, php5-ldap, php5-mysql, php-pear, php-mail-mime, mysql-server, perl
|
||||||
Section: web
|
Section: web
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Recommends: firefox
|
|
||||||
Homepage: http://www.dolibarr.org
|
Homepage: http://www.dolibarr.org
|
||||||
Description: Easy to use web based ERP & CRM software
|
Description: Easy to use web based ERP & CRM software
|
||||||
Dolibarr ERP & CRM is an easy to use open source/free software for small
|
Dolibarr ERP & CRM is an easy to use open source/free software for small
|
||||||
@ -20,28 +19,28 @@ Description: Easy to use web based ERP & CRM software
|
|||||||
Only features you need are visible, depending on which module were activated.
|
Only features you need are visible, depending on which module were activated.
|
||||||
Most common used modules are:
|
Most common used modules are:
|
||||||
.
|
.
|
||||||
Customers, Suppliers or Prospects directory
|
Customers, Suppliers or Prospects directory,
|
||||||
Contacts directory
|
Contacts directory,
|
||||||
Orders management
|
Orders management,
|
||||||
Commercial proposals management
|
Commercial proposals management,
|
||||||
Invoices management
|
Invoices management,
|
||||||
Products and services catalog
|
Products and services catalog,
|
||||||
Stock management
|
Stock management,
|
||||||
Foundations members management
|
Foundations members management,
|
||||||
Bank accounts management
|
Bank accounts management,
|
||||||
Point of Sale
|
Point of Sale,
|
||||||
Payments management
|
Payments management,
|
||||||
Commercial actions management
|
Commercial actions management,
|
||||||
Contracts management
|
Contracts management,
|
||||||
Standing orders management
|
Standing orders management,
|
||||||
Shipping management
|
Shipping management,
|
||||||
Donations management
|
Donations management,
|
||||||
Bookmarks management
|
Bookmarks management,
|
||||||
Mass Emailings
|
Mass Emailings,
|
||||||
Reports
|
Reports,
|
||||||
Data export and import tools
|
Wizards to export and import data,
|
||||||
LDAP connectivity
|
LDAP connectivity,
|
||||||
PDF exports
|
PDF exports,
|
||||||
And a lot of more modules...
|
And a lot of more modules...
|
||||||
.
|
.
|
||||||
You can also add third parties external modules or develop yours.
|
You can also add third parties external modules or develop yours.
|
||||||
|
|||||||
@ -4,14 +4,13 @@ Standards-Version: 3.9.1
|
|||||||
Section: web
|
Section: web
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Homepage: http://www.dolibarr.org
|
Homepage: http://www.dolibarr.org
|
||||||
Build-Depends: debhelper
|
Build-Depends: debhelper, po-debconf
|
||||||
|
|
||||||
Package: dolibarr
|
Package: dolibarr
|
||||||
Depends: ${misc:Depends}, debconf, xdg-utils, apache2, libapache2-mod-php5, php5, php5-cli, php5-cgi, php5-curl, php5-gd, php5-ldap, php5-mysql, php-pear, php-mail-mime, mysql-server, perl
|
Depends: ${misc:Depends}, xdg-utils, apache2, libapache2-mod-php5, php5, php5-cli, php5-cgi, php5-curl, php5-gd, php5-ldap, php5-mysql, php-pear, php-mail-mime, mysql-server, perl
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Section: web
|
Section: web
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Recommends: firefox
|
|
||||||
Homepage: http://www.dolibarr.org
|
Homepage: http://www.dolibarr.org
|
||||||
Description: Easy to use web based ERP & CRM software
|
Description: Easy to use web based ERP & CRM software
|
||||||
Dolibarr ERP & CRM is an easy to use open source/free software for small
|
Dolibarr ERP & CRM is an easy to use open source/free software for small
|
||||||
@ -25,28 +24,28 @@ Description: Easy to use web based ERP & CRM software
|
|||||||
Only features you need are visible, depending on which module were activated.
|
Only features you need are visible, depending on which module were activated.
|
||||||
Most common used modules are:
|
Most common used modules are:
|
||||||
.
|
.
|
||||||
Customers, Suppliers or Prospects directory
|
Customers, Suppliers or Prospects directory,
|
||||||
Contacts directory
|
Contacts directory,
|
||||||
Orders management
|
Orders management,
|
||||||
Commercial proposals management
|
Commercial proposals management,
|
||||||
Invoices management
|
Invoices management,
|
||||||
Products and services catalog
|
Products and services catalog,
|
||||||
Stock management
|
Stock management,
|
||||||
Foundations members management
|
Foundations members management,
|
||||||
Bank accounts management
|
Bank accounts management,
|
||||||
Point of Sale
|
Point of Sale,
|
||||||
Payments management
|
Payments management,
|
||||||
Commercial actions management
|
Commercial actions management,
|
||||||
Contracts management
|
Contracts management,
|
||||||
Standing orders management
|
Standing orders management,
|
||||||
Shipping management
|
Shipping management,
|
||||||
Donations management
|
Donations management,
|
||||||
Bookmarks management
|
Bookmarks management,
|
||||||
Mass Emailings
|
Mass Emailings,
|
||||||
Reports
|
Reports,
|
||||||
Data export and import tools
|
Wizards to export and import data,
|
||||||
LDAP connectivity
|
LDAP connectivity,
|
||||||
PDF exports
|
PDF exports,
|
||||||
And a lot of more modules...
|
And a lot of more modules...
|
||||||
.
|
.
|
||||||
You can also add third parties external modules or develop yours.
|
You can also add third parties external modules or develop yours.
|
||||||
@ -1 +0,0 @@
|
|||||||
doc/*
|
|
||||||
@ -1 +0,0 @@
|
|||||||
usr/share/dolibarr/htdocs/conf/conf.php.example
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
etc
|
|
||||||
usr
|
|
||||||
5
build/deb/install
Executable file
5
build/deb/install
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
etc/dolibarr/apache.conf
|
||||||
|
usr/share/applications/dolibarr.desktop
|
||||||
|
usr/share/doc/dolibarr
|
||||||
|
usr/share/dolibarr
|
||||||
|
usr/share/pixmaps
|
||||||
@ -4,13 +4,13 @@
|
|||||||
// This file must be present into htdocs/install directory
|
// This file must be present into htdocs/install directory
|
||||||
// during install process to be used.
|
// during install process to be used.
|
||||||
//
|
//
|
||||||
// $Id: install.forced.php.install,v 1.7 2011/07/09 15:48:19 eldy Exp $
|
// $Id: install.forced.php.install,v 1.8 2011/07/27 16:45:47 eldy Exp $
|
||||||
//
|
//
|
||||||
|
|
||||||
$force_install_noedit=1;
|
$force_install_noedit=1;
|
||||||
$force_install_message='KeepDefaultValuesDeb';
|
$force_install_message='KeepDefaultValuesDeb';
|
||||||
$force_install_main_data_root='/usr/share/dolibarr/documents';
|
#$force_install_main_data_root='/usr/share/dolibarr/documents';
|
||||||
#$force_install_main_data_root='/var/lib/dolibarr';
|
$force_install_main_data_root='/var/lib/dolibarr/documents';
|
||||||
$force_install_type='mysqli';
|
$force_install_type='mysqli';
|
||||||
$force_install_dbserver='localhost';
|
$force_install_dbserver='localhost';
|
||||||
$force_install_port='3306';
|
$force_install_port='3306';
|
||||||
|
|||||||
@ -1,3 +0,0 @@
|
|||||||
# This file seems to be useless for Ubuntu
|
|
||||||
# Good way to add menu on Ubuntu is adding file dolibarr.desktop
|
|
||||||
text Apps/Misc dolibarr none "Dolibarr ERP/CRM" rundolibarr.sh
|
|
||||||
42
build/deb/po/fr.po
Executable file
42
build/deb/po/fr.po
Executable file
@ -0,0 +1,42 @@
|
|||||||
|
#
|
||||||
|
# Translators, if you are not familiar with the PO format, gettext
|
||||||
|
# documentation is worth reading, especially sections dedicated to
|
||||||
|
# this format, e.g. by running:
|
||||||
|
# info -n '(gettext)PO Files'
|
||||||
|
# info -n '(gettext)Header Entry'
|
||||||
|
#
|
||||||
|
# Some information specific to po-debconf are available at
|
||||||
|
# /usr/share/doc/po-debconf/README-trans
|
||||||
|
# or http://www.debian.org/intl/l10n/po-debconf/README-trans
|
||||||
|
#
|
||||||
|
# Developers do not need to manually edit POT or PO files.
|
||||||
|
#
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id: dolibarr\n"
|
||||||
|
"Project-Id-Version: 1.0\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2011-07-29 04:31+0100\n"
|
||||||
|
"PO-Revision-Date: 2011-07-29 22:45+0100\n"
|
||||||
|
"Last-Translator: Laurent Destailleur <eldy@users.sourceforge.net>\n"
|
||||||
|
"Language-Team: Laurent Destailleur <eldy@users.sourceforge.net>\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=utf-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
|
||||||
|
#
|
||||||
|
#. Description
|
||||||
|
#: ../templates:dolibarr/postrm
|
||||||
|
msgid ""
|
||||||
|
"Delete database and uploaded files ?"
|
||||||
|
msgstr ""
|
||||||
|
"Effacer la base de donnée et les fichiers uploadés ?"
|
||||||
|
|
||||||
|
#
|
||||||
|
#. Description
|
||||||
|
#: ../templates:dolibarr/postrm
|
||||||
|
msgid ""
|
||||||
|
"Answer if you want to removed the Dolibarr MySQL database and all other datas (datas related to this question are the Dolibarr DBMS account, all Dolibarr tables, and all uploaded files)."
|
||||||
|
msgstr ""
|
||||||
|
"Indiquez si vous voulez supprimer la base Dolibarr et toutes ces données (les données en question ici sont les comptes de la base, les tables et tous les fichiers téléchargés)."
|
||||||
|
|
||||||
BIN
build/deb/po/messages.mo
Executable file
BIN
build/deb/po/messages.mo
Executable file
Binary file not shown.
@ -23,16 +23,16 @@ db_version 2.0
|
|||||||
|
|
||||||
echo Run the dolibarr postinst script
|
echo Run the dolibarr postinst script
|
||||||
|
|
||||||
|
|
||||||
|
docdir='/var/lib/dolibarr/documents'
|
||||||
|
#docdir='/usr/share/dolibarr/documents'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
configure)
|
configure)
|
||||||
|
|
||||||
# Copy apache.conf file into target directory
|
# Edit install.forced.php to match Debian values
|
||||||
fileorig="/usr/share/dolibarr/build/deb/apache.conf"
|
|
||||||
config="/etc/dolibarr/apache.conf"
|
|
||||||
mkdir -p /etc/dolibarr
|
|
||||||
cp -p $fileorig $config
|
|
||||||
|
|
||||||
# Create install.forced.php into Dolibarr install directory
|
|
||||||
fileorig="/usr/share/dolibarr/build/deb/install.forced.php.install"
|
fileorig="/usr/share/dolibarr/build/deb/install.forced.php.install"
|
||||||
config="/usr/share/dolibarr/htdocs/install/install.forced.php"
|
config="/usr/share/dolibarr/htdocs/install/install.forced.php"
|
||||||
superuserlogin=''
|
superuserlogin=''
|
||||||
@ -49,9 +49,7 @@ case "$1" in
|
|||||||
cat $fileorig | sed -e 's/__SUPERUSERLOGIN__/'$superuserlogin'/g' | sed -e 's/__SUPERUSERPASSWORD__/'$superuserpassword'/g' > $config
|
cat $fileorig | sed -e 's/__SUPERUSERLOGIN__/'$superuserlogin'/g' | sed -e 's/__SUPERUSERPASSWORD__/'$superuserpassword'/g' > $config
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create document directory
|
# Create document directory for uploaded data files
|
||||||
#docdir='/var/lib/dolibarr/documents'
|
|
||||||
docdir='/usr/share/dolibarr/documents'
|
|
||||||
mkdir -p $docdir
|
mkdir -p $docdir
|
||||||
chown -R www-data:www-data $docdir
|
chown -R www-data:www-data $docdir
|
||||||
chmod -R 775 $docdir
|
chmod -R 775 $docdir
|
||||||
@ -96,10 +94,7 @@ case "$1" in
|
|||||||
|
|
||||||
echo Web user.group used is $webuser.$webgroup
|
echo Web user.group used is $webuser.$webgroup
|
||||||
|
|
||||||
#
|
# Set permissions to web server
|
||||||
# That may lead to problems if apache & apache-ssl do
|
|
||||||
# not have the same user/group.
|
|
||||||
#
|
|
||||||
chown -R $webuser:$webgroup /usr/share/dolibarr
|
chown -R $webuser:$webgroup /usr/share/dolibarr
|
||||||
chown -R root:$webgroup /usr/share/dolibarr/htdocs/conf/conf.php
|
chown -R root:$webgroup /usr/share/dolibarr/htdocs/conf/conf.php
|
||||||
|
|
||||||
|
|||||||
@ -23,13 +23,12 @@ db_version 2.0
|
|||||||
|
|
||||||
echo Run the dolibarr postrm script
|
echo Run the dolibarr postrm script
|
||||||
|
|
||||||
#echo "postrm db_get dolibarr/webserver"
|
|
||||||
# We disable set -e to avoid premature end of script if error
|
|
||||||
set +e
|
|
||||||
#db_get "dolibarr/webserver" || true
|
|
||||||
set -e
|
|
||||||
export webserver="$RET"
|
|
||||||
|
|
||||||
|
docdir='/var/lib/dolibarr/documents'
|
||||||
|
#docdir='/usr/share/dolibarr/documents'
|
||||||
|
|
||||||
|
|
||||||
|
export webserver=""
|
||||||
# Allows us to loop and substitute in one pass
|
# Allows us to loop and substitute in one pass
|
||||||
case $webserver in
|
case $webserver in
|
||||||
Apache) webservers="apache2" ;;
|
Apache) webservers="apache2" ;;
|
||||||
@ -39,6 +38,7 @@ case $webserver in
|
|||||||
esac
|
esac
|
||||||
export includefile=/etc/dolibarr/apache.conf
|
export includefile=/etc/dolibarr/apache.conf
|
||||||
|
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
# Call when we uninstall and purge
|
# Call when we uninstall and purge
|
||||||
purge)
|
purge)
|
||||||
@ -139,21 +139,25 @@ case "$1" in
|
|||||||
log="${log}Database $dbname already not exists."
|
log="${log}Database $dbname already not exists."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Remove directory $docdir"
|
||||||
|
rm -rf $docdir ;
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "postrm Delete of dolibarr database not wanted"
|
echo "postrm Delete of dolibarr database and uploaded files not wanted"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove include files
|
# Remove include files
|
||||||
|
export restart=""
|
||||||
for server in $webservers ; do
|
for server in $webservers ; do
|
||||||
# New usage
|
|
||||||
export conffile="/etc/$server/conf.d/dolibarr.conf"
|
export conffile="/etc/$server/conf.d/dolibarr.conf"
|
||||||
if [ -f $conffile ] ;
|
if [ -f $conffile ] ;
|
||||||
then
|
then
|
||||||
|
echo Delete file $conffile
|
||||||
rm -f $conffile
|
rm -f $conffile
|
||||||
status=purge
|
status=purge
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$status" = "purge" ] ;
|
if [ "x$status" = "xpurge" ] ;
|
||||||
then restart="$restart $server"
|
then restart="$restart $server"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@ -161,7 +165,7 @@ case "$1" in
|
|||||||
rm -rf /etc/dolibarr
|
rm -rf /etc/dolibarr
|
||||||
|
|
||||||
# Restart servers
|
# Restart servers
|
||||||
for server in $servers ; do
|
for server in $restart ; do
|
||||||
# We disable blocking errors
|
# We disable blocking errors
|
||||||
set +e
|
set +e
|
||||||
echo "Restart server $server if exists"
|
echo "Restart server $server if exists"
|
||||||
@ -175,7 +179,7 @@ case "$1" in
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Remove file and conf file
|
# Remove file and conf file
|
||||||
for dir in /usr/share/dolibarr ; do
|
for dir in /usr/share/dolibarr; do
|
||||||
if [ -d $dir ] ; then
|
if [ -d $dir ] ; then
|
||||||
# We disable blocking errors
|
# We disable blocking errors
|
||||||
set +e
|
set +e
|
||||||
@ -191,7 +195,7 @@ case "$1" in
|
|||||||
db_reset "dolibarr/postrm"
|
db_reset "dolibarr/postrm"
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
db_purge
|
#db_purge
|
||||||
;;
|
;;
|
||||||
|
|
||||||
# Call when we uninstall
|
# Call when we uninstall
|
||||||
@ -202,16 +206,21 @@ case "$1" in
|
|||||||
echo "postrm Force remove of /usr/share/dolibarr/htdocs/conf"
|
echo "postrm Force remove of /usr/share/dolibarr/htdocs/conf"
|
||||||
rm -fr /usr/share/dolibarr/htdocs/conf
|
rm -fr /usr/share/dolibarr/htdocs/conf
|
||||||
|
|
||||||
#echo "postrm Remove menu entry and image"
|
# Remove include files
|
||||||
#fileorig="/usr/share/applications/dolibarr.desktop"
|
export restart=""
|
||||||
#rm -f $fileorig
|
for server in $webservers ; do
|
||||||
#fileorig="/usr/share/pixmaps/dolibarr.xpm"
|
export conffile="/etc/$server/conf.d/dolibarr.conf"
|
||||||
#rm -f $fileorig
|
if [ -f $conffile ] ;
|
||||||
# Not sure this is usefull
|
then
|
||||||
#if test -x /usr/bin/update-menus; then
|
echo Delete file $conffile
|
||||||
# echo "update-menus"
|
rm -f $conffile
|
||||||
# update-menus;
|
status=purge
|
||||||
#fi
|
fi
|
||||||
|
|
||||||
|
if [ "x$status" = "xpurge" ] ;
|
||||||
|
then restart="$restart $server"
|
||||||
|
fi
|
||||||
|
done
|
||||||
;;
|
;;
|
||||||
|
|
||||||
upgrade)
|
upgrade)
|
||||||
@ -226,8 +235,8 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
db_stop
|
|
||||||
|
|
||||||
#DEBHELPER#
|
#DEBHELPER#
|
||||||
|
|
||||||
|
db_stop
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
@ -1,8 +1,10 @@
|
|||||||
#!/usr/bin/make -f
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
# This is the debhelper compatability version to use.
|
# Uncomment this to turn on verbose mode.
|
||||||
#export DH_COMPAT=7 # Now defined into compat file
|
export DH_VERBOSE=1
|
||||||
|
export DH_OPTIONS=-v
|
||||||
|
|
||||||
|
#export DH_COMPAT=7 # This is the debhelper compatability version to use, now defined into compat file
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@
|
dh $@
|
||||||
@ -1,7 +1,7 @@
|
|||||||
Template: dolibarr/postrm
|
Template: dolibarr/postrm
|
||||||
Type: boolean
|
Type: boolean
|
||||||
Default: true
|
Default: true
|
||||||
Description: Delete database ?
|
Description: Delete database and uploaded files ?
|
||||||
Answer if you want to removed the Dolibarr MySQL database and all
|
Answer if you want to removed the Dolibarr MySQL database and all
|
||||||
its datas (datas related to this quetion are the Dolibarr DBMS account
|
other datas (datas related to this question are the Dolibarr DBMS
|
||||||
and all Dolibarr tables).
|
account, all Dolibarr tables, and all uploaded files).
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user