mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 01:28:19 +01:00
Work on 3.1 packaging
This commit is contained in:
@@ -4,6 +4,6 @@ dolibarr (3.1.0-1.1) unstable; urgency=low
|
|||||||
* New upstream release.
|
* New upstream release.
|
||||||
closes: bug#634783
|
closes: bug#634783
|
||||||
|
|
||||||
-- Dolibarr team <contact@dolibarr.org> Mon, 30 Jul 2011 12:00:00 +0100
|
-- Laurent Destailleur <eldy@users.sourceforge.net> Mon, 30 Jul 2011 12:00:00 +0100
|
||||||
|
|
||||||
# For a changelog file dedicated to users, see /usr/share/doc/dolibarr/UserChangeLog.gz file.
|
# For a changelog file dedicated to users, see /usr/share/doc/dolibarr/UserChangeLog.gz file.
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# postinst script for dolibarr
|
# postinst script for dolibarr
|
||||||
|
#
|
||||||
|
# see: dh_installdeb(1)
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
@@ -14,31 +16,6 @@ set -e
|
|||||||
# for details, see /usr/share/doc/packaging-manual/
|
# for details, see /usr/share/doc/packaging-manual/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
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 -fs /etc/dolibarr/lighttpd.conf /etc/lighttpd/conf-available/50-dolibarr.conf
|
|
||||||
# We enabled it
|
|
||||||
lighty-enable-mod dolibarr fastcgi-php
|
|
||||||
else
|
|
||||||
echo "Lighttpd not installed, skipping"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
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 -fs /etc/dolibarr/apache.conf /etc/$webserver/conf.d/dolibarr.conf
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
. /usr/share/debconf/confmodule
|
. /usr/share/debconf/confmodule
|
||||||
|
|
||||||
db_version 2.0
|
db_version 2.0
|
||||||
@@ -50,6 +27,8 @@ echo Run the dolibarr postinst script
|
|||||||
# Define vars
|
# Define vars
|
||||||
docdir='/var/lib/dolibarr/documents'
|
docdir='/var/lib/dolibarr/documents'
|
||||||
#docdir='/usr/share/dolibarr/documents'
|
#docdir='/usr/share/dolibarr/documents'
|
||||||
|
apachefileorig="/usr/share/dolibarr/build/deb/apache.conf"
|
||||||
|
apacheconfig="/etc/dolibarr/apache.conf"
|
||||||
installfileorig="/usr/share/dolibarr/build/deb/install.forced.php.install"
|
installfileorig="/usr/share/dolibarr/build/deb/install.forced.php.install"
|
||||||
installconfig="/etc/dolibarr/install.forced.php"
|
installconfig="/etc/dolibarr/install.forced.php"
|
||||||
#config="/usr/share/dolibarr/htdocs/conf/conf.php"
|
#config="/usr/share/dolibarr/htdocs/conf/conf.php"
|
||||||
@@ -65,6 +44,10 @@ case "$1" in
|
|||||||
chmod -R 775 $docdir
|
chmod -R 775 $docdir
|
||||||
chmod -R g+s $docdir
|
chmod -R g+s $docdir
|
||||||
|
|
||||||
|
# Copy apache.conf file into target directory
|
||||||
|
#mkdir -p /etc/dolibarr
|
||||||
|
#cp -p $apachefileorig $apacheconfig
|
||||||
|
|
||||||
# Copy install config file (with matching Debian) values into target directory
|
# Copy install config file (with matching Debian) values into target directory
|
||||||
superuserlogin=''
|
superuserlogin=''
|
||||||
superuserpassword=''
|
superuserpassword=''
|
||||||
@@ -91,15 +74,21 @@ case "$1" in
|
|||||||
chmod -R 660 $config
|
chmod -R 660 $config
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Get the web server type (use db_get for interactive mode).
|
||||||
|
#db_reset "dolibarr/webserver"
|
||||||
|
#db_get "dolibarr/webserver" # Read value for webserver.
|
||||||
|
#webserver="$RET"
|
||||||
|
|
||||||
db_get dolibarr/reconfigure-webserver
|
case $webserver in
|
||||||
|
Apache) webservers="apache2" ;;
|
||||||
webservers="$RET"
|
Apache-SSL) webservers="apache2-ssl" ;;
|
||||||
|
Both) webservers="apache2 apache2-ssl" ;;
|
||||||
|
*) webservers="apache2 apache2-ssl" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
# Set up web server.
|
# Set up web server.
|
||||||
for webserver in $webservers ; do
|
for server in $webservers ; do
|
||||||
webserver=${webserver%,}
|
echo Complete config of server $server
|
||||||
echo Complete config of server $webserver
|
|
||||||
|
|
||||||
# Detect webuser and webgroup
|
# Detect webuser and webgroup
|
||||||
webuser=
|
webuser=
|
||||||
@@ -117,32 +106,27 @@ case "$1" in
|
|||||||
# Set permissions to web server
|
# Set permissions to web server
|
||||||
chown -R $webuser:$webgroup /usr/share/dolibarr
|
chown -R $webuser:$webgroup /usr/share/dolibarr
|
||||||
chown -R root:$webgroup $config
|
chown -R root:$webgroup $config
|
||||||
|
|
||||||
|
# Add link to config file
|
||||||
|
echo Setup web server $server to add dolibarr config file
|
||||||
|
ln -fs /etc/dolibarr/apache.conf /etc/apache2/conf.d/dolibarr.conf
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# Restart web server.
|
# Restart servers
|
||||||
for webserver in $webservers; do
|
servers="apache2-ssl apache2 mysql"
|
||||||
webserver=${webserver%,}
|
# Another way to restart
|
||||||
if [ "$webserver" = "lighttpd" ] ; then
|
for server in $servers ; do
|
||||||
lighttpd_install
|
|
||||||
else
|
|
||||||
apache_install $webserver
|
|
||||||
fi
|
|
||||||
# Reload webserver in any case, configuration might have changed
|
|
||||||
# Redirection of 3 is needed because Debconf uses it and it might
|
|
||||||
# be inherited by webserver. See bug #446324.
|
|
||||||
if [ -f /etc/init.d/$webserver ] ; then
|
|
||||||
if [ -x /usr/sbin/invoke-rc.d ]; then
|
if [ -x /usr/sbin/invoke-rc.d ]; then
|
||||||
echo Restart web server $server using invoke-rc.d
|
echo Restart web server $server using invoke-rc.d
|
||||||
# This works with Debian (5.05,...) and Ubuntu (9.10,10.04,...)
|
# This works with Debian (5.05,...) and Ubuntu (9.10,10.04,...)
|
||||||
invoke-rc.d $webserver reload 3>/dev/null || true
|
invoke-rc.d $server reload || true
|
||||||
else
|
else
|
||||||
echo Restart web server $server using $server reload
|
echo Restart web server $server using $server reload
|
||||||
/etc/init.d/$webserver reload 3>/dev/null || true
|
/etc/init.d/$server reload || true
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
echo ----------
|
echo ----------
|
||||||
echo "Call Dolibarr page http://localhost/dolibarr/ to complete the installation and use Dolibarr."
|
echo "Call Dolibarr page http://localhost/dolibarr/ to complete the installation and use Dolibarr."
|
||||||
echo ----------
|
echo ----------
|
||||||
@@ -152,13 +136,13 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo "postinst called with unknown argument $1" >&2
|
echo "postinst called with unknown argument \`$1'" >&2
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
#DEBHELPER#
|
|
||||||
|
|
||||||
db_stop
|
db_stop
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
142
build/deb/postrm
142
build/deb/postrm
@@ -17,36 +17,7 @@ set -e
|
|||||||
# for details, see /usr/share/doc/packaging-manual/
|
# for details, see /usr/share/doc/packaging-manual/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
lighttpd_remove() {
|
|
||||||
if [ -f /etc/lighttpd/conf-available/50-dolibarr.conf ] ; then
|
|
||||||
echo "Remove link for Lighttpd config file"
|
|
||||||
rm -f /etc/lighttpd/conf-available/50-dolibarr.conf
|
|
||||||
if which lighty-enable-mod >/dev/null 2>&1 ; then
|
|
||||||
lighty-disable-mod dolibarr
|
|
||||||
else
|
|
||||||
echo "Lighttpd not installed, skipping"
|
|
||||||
fi
|
|
||||||
# See bug #448682
|
|
||||||
if [ -h /etc/lighttpd/conf-enabled/50-dolibarr.conf ] ; then
|
|
||||||
echo 'Manually deleting lighttpd/dolibarr configuration link'
|
|
||||||
rm /etc/lighttpd/conf-enabled/50-dolibarr.conf
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
apache_remove() {
|
|
||||||
if [ -d /etc/$webserver/conf.d ] && [ -L /etc/$webserver/conf.d/dolibarr.conf ]; then
|
|
||||||
echo "Remove link for Apache config file"
|
|
||||||
rm -f /etc/$webserver/conf.d/dolibarr.conf
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if [ -f /usr/share/debconf/confmodule ]; then
|
|
||||||
. /usr/share/debconf/confmodule
|
. /usr/share/debconf/confmodule
|
||||||
fi
|
|
||||||
|
|
||||||
db_version 2.0
|
db_version 2.0
|
||||||
|
|
||||||
@@ -55,62 +26,36 @@ echo Run the dolibarr postrm script
|
|||||||
|
|
||||||
docdir='/var/lib/dolibarr/documents'
|
docdir='/var/lib/dolibarr/documents'
|
||||||
#docdir='/usr/share/dolibarr/documents'
|
#docdir='/usr/share/dolibarr/documents'
|
||||||
|
apachefileorig="/usr/share/dolibarr/build/deb/apache.conf"
|
||||||
|
apacheconfig="/etc/dolibarr/apache.conf"
|
||||||
#config="/usr/share/dolibarr/htdocs/conf/conf.php"
|
#config="/usr/share/dolibarr/htdocs/conf/conf.php"
|
||||||
config="/etc/dolibarr/conf.php"
|
config="/etc/dolibarr/conf.php"
|
||||||
lockfile="/usr/share/dolibarr/install.lock"
|
|
||||||
|
|
||||||
|
|
||||||
|
export webserver=""
|
||||||
|
# Allows us to loop and substitute in one pass
|
||||||
|
case $webserver in
|
||||||
|
Apache) webservers="apache2" ;;
|
||||||
|
Apache-SSL) webservers="apache2-ssl" ;;
|
||||||
|
Both) webservers="apache2 apache2-ssl" ;;
|
||||||
|
*) webservers="apache2 apache2-ssl" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
case "$1" in
|
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
|
|
||||||
db_get dolibarr/reconfigure-webserver
|
|
||||||
|
|
||||||
webservers="$RET"
|
|
||||||
|
|
||||||
# Restart web servers
|
|
||||||
for webserver in $webservers; do
|
|
||||||
webserver=${webserver%,}
|
|
||||||
if [ "$webserver" = "lighttpd" ] ; then
|
|
||||||
lighttpd_remove
|
|
||||||
else
|
|
||||||
apache_remove $webserver
|
|
||||||
fi
|
|
||||||
# Redirection of 3 is needed because Debconf uses it and it might
|
|
||||||
# be inherited by webserver. See bug #446324.
|
|
||||||
if [ -f /etc/init.d/$webserver ] ; then
|
|
||||||
if [ -x /usr/sbin/invoke-rc.d ]; then
|
|
||||||
invoke-rc.d $webserver reload 3>/dev/null || true
|
|
||||||
else
|
|
||||||
/etc/init.d/$webserver reload 3>/dev/null || true
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
;;
|
|
||||||
|
|
||||||
# Call when we uninstall and purge
|
# Call when we uninstall and purge
|
||||||
purge)
|
purge)
|
||||||
echo "postrm purge"
|
echo "postrm purge webservers=$webservers apacheconfig=$apacheconfig"
|
||||||
|
|
||||||
# Ask if we must delete database
|
# Ask if we must delete database
|
||||||
echo "postrm db_input dolibarr/postrm"
|
echo "postrm db_input dolibarr/postrm"
|
||||||
db_input critical dolibarr/postrm || true
|
db_input critical "dolibarr/postrm" || true
|
||||||
db_go || true
|
db_go || true
|
||||||
|
|
||||||
echo "postrm db_get dolibarr/postrm"
|
echo "postrm db_get dolibarr/postrm"
|
||||||
# We disable set -e to avoid premature end of script if error
|
# We disable set -e to avoid premature end of script if error
|
||||||
set +e
|
set +e
|
||||||
db_get dolibarr/postrm
|
db_get "dolibarr/postrm"
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ "$RET" = "true" ] ; then
|
if [ "$RET" = "true" ] ; then
|
||||||
@@ -213,22 +158,75 @@ case "$1" in
|
|||||||
echo "postrm Delete of dolibarr database and uploaded files not wanted"
|
echo "postrm Delete of dolibarr database and uploaded files not wanted"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Remove include files
|
||||||
|
export restart=""
|
||||||
|
for server in $webservers ; do
|
||||||
|
export conffile="/etc/$server/conf.d/dolibarr.conf"
|
||||||
|
if [ -f $conffile ] ;
|
||||||
|
then
|
||||||
|
echo Delete file $conffile
|
||||||
|
rm -f $conffile
|
||||||
|
status=purge
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "x$status" = "xpurge" ] ;
|
||||||
|
then restart="$restart $server"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
rm -rf /etc/dolibarr
|
rm -rf /etc/dolibarr
|
||||||
|
|
||||||
|
# Restart servers
|
||||||
|
for server in $restart ; do
|
||||||
|
# We disable blocking errors
|
||||||
|
set +e
|
||||||
|
echo "Restart server $server if exists"
|
||||||
|
if [ -x /usr/sbin/invoke-rc.d ]; then
|
||||||
|
invoke-rc.d $server reload || true
|
||||||
|
else
|
||||||
|
/etc/init.d/$server reload || true
|
||||||
|
fi
|
||||||
|
# We restore blocking errors
|
||||||
|
set -e
|
||||||
|
done
|
||||||
|
|
||||||
# We clean variable (we ignore errors because db_reset can fails if var was never set)
|
# We clean variable (we ignore errors because db_reset can fails if var was never set)
|
||||||
set +e
|
set +e
|
||||||
db_reset dolibarr/reconfigure-webserver
|
db_reset "dolibarr/postrm"
|
||||||
db_reset dolibarr/postrm
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
#db_purge
|
#db_purge
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
# Call when we uninstall
|
||||||
|
remove)
|
||||||
|
rm -f /usr/share/dolibarr/install.lock
|
||||||
|
|
||||||
|
# Remove include files
|
||||||
|
export restart=""
|
||||||
|
for server in $webservers ; do
|
||||||
|
export conffile="/etc/$server/conf.d/dolibarr.conf"
|
||||||
|
if [ -f $conffile ] ;
|
||||||
|
then
|
||||||
|
echo Delete link $conffile
|
||||||
|
rm -f $conffile
|
||||||
|
status=purge
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "x$status" = "xpurge" ] ;
|
||||||
|
then restart="$restart $server"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
;;
|
||||||
|
|
||||||
|
upgrade)
|
||||||
|
;;
|
||||||
|
|
||||||
failed-upgrade|abort-install|abort-upgrade|disappear)
|
failed-upgrade|abort-install|abort-upgrade|disappear)
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo "postrm called with unknown argument $1" >&2
|
echo "postrm called with unknown argument \`$1'" >&2
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
# \file build/makepack-dolibarr.pl
|
# \file build/makepack-dolibarr.pl
|
||||||
# \brief Dolibarr package builder (tgz, zip, rpm, deb, exe, aps)
|
# \brief Dolibarr package builder (tgz, zip, rpm, deb, exe, aps)
|
||||||
# \version $Id: makepack-dolibarr.pl,v 1.122 2011/07/30 10:23:26 eldy Exp $
|
# \version $Id: makepack-dolibarr.pl,v 1.123 2011/07/30 14:56:12 eldy Exp $
|
||||||
# \author (c)2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
# \author (c)2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
@@ -48,7 +48,7 @@ if (-d "/usr/src/RPM") {
|
|||||||
|
|
||||||
|
|
||||||
use vars qw/ $REVISION $VERSION /;
|
use vars qw/ $REVISION $VERSION /;
|
||||||
$REVISION='$Revision: 1.122 $'; $REVISION =~ /\s(.*)\s/; $REVISION=$1;
|
$REVISION='$Revision: 1.123 $'; $REVISION =~ /\s(.*)\s/; $REVISION=$1;
|
||||||
$VERSION="1.0 (build $REVISION)";
|
$VERSION="1.0 (build $REVISION)";
|
||||||
|
|
||||||
|
|
||||||
@@ -522,20 +522,33 @@ if ($nboftargetok) {
|
|||||||
print "Version set to $MAJOR.$MINOR.$newbuild\n";
|
print "Version set to $MAJOR.$MINOR.$newbuild\n";
|
||||||
|
|
||||||
print "Remove other files\n";
|
print "Remove other files\n";
|
||||||
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/COPYRIGHT`;
|
||||||
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/INSTALL`;
|
||||||
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/README`;
|
||||||
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/README-FR`;
|
||||||
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/README`;
|
||||||
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/README-FR`;
|
||||||
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/aps`;
|
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/aps`;
|
||||||
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/dmg`;
|
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/dmg`;
|
||||||
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/pad/README`;
|
||||||
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/tgz/README`;
|
||||||
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/README`;
|
||||||
|
#$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb`;
|
||||||
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/po`;
|
$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/po`;
|
||||||
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/changelog`;
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/changelog`;
|
||||||
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/compat`;
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/compat`;
|
||||||
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/config`;
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/config`;
|
||||||
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/control.*`;
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/control.*`;
|
||||||
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/copyright`;
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/copyright`;
|
||||||
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/dolibarr.desktop`;
|
||||||
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/dolibarr.menu`;
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/dolibarr.menu`;
|
||||||
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/format`;
|
||||||
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/install`;
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/install`;
|
||||||
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/menu`;
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/menu`;
|
||||||
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/postrm`;
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/postrm`;
|
||||||
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/postinst`;
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/postinst`;
|
||||||
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/rules`;
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/rules`;
|
||||||
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/README.debian`;
|
||||||
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/templates`;
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/templates`;
|
||||||
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/templates.futur`;
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/templates.futur`;
|
||||||
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/wash`;
|
$ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/wash`;
|
||||||
@@ -649,11 +662,6 @@ if ($nboftargetok) {
|
|||||||
$ret=`mkdir "$BUILDROOT/$PROJECT.tmp/debian"`;
|
$ret=`mkdir "$BUILDROOT/$PROJECT.tmp/debian"`;
|
||||||
$ret=`mkdir "$BUILDROOT/$PROJECT.tmp/debian/source"`;
|
$ret=`mkdir "$BUILDROOT/$PROJECT.tmp/debian/source"`;
|
||||||
$ret=`rm -fr "$BUILDROOT/$PROJECT.tmp/DEBIAN"`;
|
$ret=`rm -fr "$BUILDROOT/$PROJECT.tmp/DEBIAN"`;
|
||||||
$ret=`rm -fr "$BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/pom.xml"`;
|
|
||||||
$ret=`rm -fr "$BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/COPYRIGHT"`;
|
|
||||||
$ret=`rm -fr "$BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/INSTALL"`;
|
|
||||||
$ret=`rm -fr "$BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/README"`;
|
|
||||||
$ret=`rm -fr "$BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/README-FR"`;
|
|
||||||
$ret=`rm -fr "$BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/doc"`;
|
$ret=`rm -fr "$BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/doc"`;
|
||||||
print "Copy $SOURCE/build/deb/xxx to $BUILDROOT/$PROJECT.tmp/debian\n";
|
print "Copy $SOURCE/build/deb/xxx to $BUILDROOT/$PROJECT.tmp/debian\n";
|
||||||
# Add files for dpkg-source
|
# Add files for dpkg-source
|
||||||
@@ -667,6 +675,7 @@ if ($nboftargetok) {
|
|||||||
$ret=`cp -f "$SOURCE/build/deb/compat" "$BUILDROOT/$PROJECT.tmp/debian/compat"`;
|
$ret=`cp -f "$SOURCE/build/deb/compat" "$BUILDROOT/$PROJECT.tmp/debian/compat"`;
|
||||||
$ret=`cp -f "$SOURCE/build/deb/format" "$BUILDROOT/$PROJECT.tmp/debian/source/format"`;
|
$ret=`cp -f "$SOURCE/build/deb/format" "$BUILDROOT/$PROJECT.tmp/debian/source/format"`;
|
||||||
$ret=`cp -fr "$SOURCE/build/deb/po" "$BUILDROOT/$PROJECT.tmp/debian/po"`;
|
$ret=`cp -fr "$SOURCE/build/deb/po" "$BUILDROOT/$PROJECT.tmp/debian/po"`;
|
||||||
|
$ret=`rm -fr "$SOURCE/build/deb/po/CVS"`;
|
||||||
# Add files also required to build binary package with dpkg-buildpackages
|
# Add files also required to build binary package with dpkg-buildpackages
|
||||||
$ret=`cp -f "$SOURCE/build/deb/config" "$BUILDROOT/$PROJECT.tmp/debian"`;
|
$ret=`cp -f "$SOURCE/build/deb/config" "$BUILDROOT/$PROJECT.tmp/debian"`;
|
||||||
$ret=`cp -f "$SOURCE/build/deb/postinst" "$BUILDROOT/$PROJECT.tmp/debian"`;
|
$ret=`cp -f "$SOURCE/build/deb/postinst" "$BUILDROOT/$PROJECT.tmp/debian"`;
|
||||||
|
|||||||
@@ -3,11 +3,10 @@ $force_install_noedit=2;
|
|||||||
$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_type='mysqli';
|
$force_install_type='mysqli';
|
||||||
$force_install_dbserver='localhost';
|
|
||||||
$force_install_port='3306';
|
$force_install_port='3306';
|
||||||
$force_install_database='dolibarrrpm';
|
$force_install_database='dolibarr';
|
||||||
$force_install_createdatabase='1';
|
$force_install_createdatabase='1';
|
||||||
$force_install_databaselogin='dolibarrrpm';
|
$force_install_databaselogin='dolibarrmysql';
|
||||||
$force_install_databasepass='';
|
$force_install_databasepass='';
|
||||||
$force_install_createuser='1';
|
$force_install_createuser='1';
|
||||||
$force_install_databaserootlogin='__SUPERUSERLOGIN__';
|
$force_install_databaserootlogin='__SUPERUSERLOGIN__';
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
* \file htdocs/install/check.php
|
* \file htdocs/install/check.php
|
||||||
* \ingroup install
|
* \ingroup install
|
||||||
* \brief Test if file conf can be modified and if does not exists, test if install process can create it
|
* \brief Test if file conf can be modified and if does not exists, test if install process can create it
|
||||||
* \version $Id: check.php,v 1.85 2011/07/30 10:23:25 eldy Exp $
|
* \version $Id: check.php,v 1.86 2011/07/30 14:56:43 eldy Exp $
|
||||||
*/
|
*/
|
||||||
include_once("./inc.php");
|
include_once("./inc.php");
|
||||||
|
|
||||||
@@ -39,7 +39,9 @@ $langs->load("install");
|
|||||||
|
|
||||||
// Init "forced values" to nothing. "forced values" are used after an doliwamp install wizard.
|
// Init "forced values" to nothing. "forced values" are used after an doliwamp install wizard.
|
||||||
if (! isset($force_install_dolibarrlogin)) $force_install_dolibarrlogin='';
|
if (! isset($force_install_dolibarrlogin)) $force_install_dolibarrlogin='';
|
||||||
if (file_exists("./install.forced.php")) include_once("./install.forced.php");
|
$useforcedwizard=false;
|
||||||
|
if (file_exists("./install.forced.php")) { $useforcedwizard=true; include_once("./install.forced.php"); }
|
||||||
|
else if (file_exists("/etc/dolibarr/install.forced.php")) { $useforcedwizard=include_once("/etc/dolibarr/install.forced.php"); }
|
||||||
|
|
||||||
dolibarr_install_syslog("Dolibarr install/upgrade process started");
|
dolibarr_install_syslog("Dolibarr install/upgrade process started");
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
* \file htdocs/install/etape0.php
|
* \file htdocs/install/etape0.php
|
||||||
* \ingroup install
|
* \ingroup install
|
||||||
* \brief Show and ask charset for database
|
* \brief Show and ask charset for database
|
||||||
* \version $Id: etape0.php,v 1.40 2011/07/30 10:23:25 eldy Exp $
|
* \version $Id: etape0.php,v 1.41 2011/07/30 14:56:43 eldy Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
define('DONOTLOADCONF',1); // To avoid loading conf by file inc.php
|
define('DONOTLOADCONF',1); // To avoid loading conf by file inc.php
|
||||||
@@ -49,7 +49,9 @@ $passroot=isset($_POST["db_pass_root"])?$_POST["db_pass_root"]:"";
|
|||||||
$main_dir=isset($_POST["main_dir"])?trim($_POST["main_dir"]):'';
|
$main_dir=isset($_POST["main_dir"])?trim($_POST["main_dir"]):'';
|
||||||
|
|
||||||
// Init "forced values" to nothing. "forced values" are used after an doliwamp install wizard.
|
// Init "forced values" to nothing. "forced values" are used after an doliwamp install wizard.
|
||||||
if (file_exists("./install.forced.php")) include_once("./install.forced.php");
|
$useforcedwizard=false;
|
||||||
|
if (file_exists("./install.forced.php")) { $useforcedwizard=true; include_once("./install.forced.php"); }
|
||||||
|
else if (file_exists("/etc/dolibarr/install.forced.php")) { $useforcedwizard=include_once("/etc/dolibarr/install.forced.php"); }
|
||||||
|
|
||||||
dolibarr_install_syslog("--- etape0: Entering etape0.php page");
|
dolibarr_install_syslog("--- etape0: Entering etape0.php page");
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
* \file htdocs/install/etape1.php
|
* \file htdocs/install/etape1.php
|
||||||
* \ingroup install
|
* \ingroup install
|
||||||
* \brief Build conf file on disk
|
* \brief Build conf file on disk
|
||||||
* \version $Id: etape1.php,v 1.134 2011/07/30 10:23:25 eldy Exp $
|
* \version $Id: etape1.php,v 1.135 2011/07/30 14:56:42 eldy Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
define('DONOTLOADCONF',1); // To avoid loading conf by file inc.php
|
define('DONOTLOADCONF',1); // To avoid loading conf by file inc.php
|
||||||
@@ -39,7 +39,9 @@ $langs->load("admin");
|
|||||||
$langs->load("install");
|
$langs->load("install");
|
||||||
|
|
||||||
// Init "forced values" to nothing. "forced values" are used after an doliwamp install wizard.
|
// Init "forced values" to nothing. "forced values" are used after an doliwamp install wizard.
|
||||||
if (file_exists("./install.forced.php")) include_once("./install.forced.php");
|
$useforcedwizard=false;
|
||||||
|
if (file_exists("./install.forced.php")) { $useforcedwizard=true; include_once("./install.forced.php"); }
|
||||||
|
else if (file_exists("/etc/dolibarr/install.forced.php")) { $useforcedwizard=include_once("/etc/dolibarr/install.forced.php"); }
|
||||||
|
|
||||||
dolibarr_install_syslog("--- etape1: Entering etape1.php page");
|
dolibarr_install_syslog("--- etape1: Entering etape1.php page");
|
||||||
|
|
||||||
@@ -526,6 +528,7 @@ function write_conf_file($conffile)
|
|||||||
global $dolibarr_main_url_root,$dolibarr_main_document_root,$dolibarr_main_data_root,$dolibarr_main_db_host;
|
global $dolibarr_main_url_root,$dolibarr_main_document_root,$dolibarr_main_data_root,$dolibarr_main_db_host;
|
||||||
global $dolibarr_main_db_port,$dolibarr_main_db_name,$dolibarr_main_db_user,$dolibarr_main_db_pass;
|
global $dolibarr_main_db_port,$dolibarr_main_db_name,$dolibarr_main_db_user,$dolibarr_main_db_pass;
|
||||||
global $dolibarr_main_db_type,$dolibarr_main_db_character_set,$dolibarr_main_db_collation,$dolibarr_main_authentication;
|
global $dolibarr_main_db_type,$dolibarr_main_db_character_set,$dolibarr_main_db_collation,$dolibarr_main_authentication;
|
||||||
|
global $conffile,$conffiletoshow,$conffiletoshowshort;
|
||||||
|
|
||||||
$error=0;
|
$error=0;
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
* \file htdocs/install/etape2.php
|
* \file htdocs/install/etape2.php
|
||||||
* \ingroup install
|
* \ingroup install
|
||||||
* \brief Create tables, primary keys, foreign keys, indexes and functions into database and then load reference data
|
* \brief Create tables, primary keys, foreign keys, indexes and functions into database and then load reference data
|
||||||
* \version $Id: etape2.php,v 1.104 2011/07/30 10:23:25 eldy Exp $
|
* \version $Id: etape2.php,v 1.105 2011/07/30 14:56:43 eldy Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
include("./inc.php");
|
include("./inc.php");
|
||||||
@@ -54,7 +54,9 @@ if ($dolibarr_main_db_type == "pgsql") $choix=2;
|
|||||||
if ($dolibarr_main_db_type == "mssql") $choix=3;
|
if ($dolibarr_main_db_type == "mssql") $choix=3;
|
||||||
|
|
||||||
// Init "forced values" to nothing. "forced values" are used after a Doliwamp install wizard.
|
// Init "forced values" to nothing. "forced values" are used after a Doliwamp install wizard.
|
||||||
if (file_exists("./install.forced.php")) include_once("./install.forced.php");
|
$useforcedwizard=false;
|
||||||
|
if (file_exists("./install.forced.php")) { $useforcedwizard=true; include_once("./install.forced.php"); }
|
||||||
|
else if (file_exists("/etc/dolibarr/install.forced.php")) { $useforcedwizard=include_once("/etc/dolibarr/install.forced.php"); }
|
||||||
|
|
||||||
dolibarr_install_syslog("--- etape2: Entering etape2.php page");
|
dolibarr_install_syslog("--- etape2: Entering etape2.php page");
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
* \file htdocs/install/etape4.php
|
* \file htdocs/install/etape4.php
|
||||||
* \ingroup install
|
* \ingroup install
|
||||||
* \brief Ask login and password of Dolibarr admin user
|
* \brief Ask login and password of Dolibarr admin user
|
||||||
* \version $Id: etape4.php,v 1.36 2011/07/30 10:23:25 eldy Exp $
|
* \version $Id: etape4.php,v 1.37 2011/07/30 14:56:43 eldy Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@@ -41,7 +41,9 @@ $langs->load("install");
|
|||||||
|
|
||||||
// Init "forced values" to nothing. "forced values" are used after an doliwamp install wizard.
|
// Init "forced values" to nothing. "forced values" are used after an doliwamp install wizard.
|
||||||
if (! isset($force_install_dolibarrlogin)) $force_install_dolibarrlogin='';
|
if (! isset($force_install_dolibarrlogin)) $force_install_dolibarrlogin='';
|
||||||
if (file_exists("./install.forced.php")) include_once("./install.forced.php");
|
$useforcedwizard=false;
|
||||||
|
if (file_exists("./install.forced.php")) { $useforcedwizard=true; include_once("./install.forced.php"); }
|
||||||
|
else if (file_exists("/etc/dolibarr/install.forced.php")) { $useforcedwizard=include_once("/etc/dolibarr/install.forced.php"); }
|
||||||
|
|
||||||
dolibarr_install_syslog("--- etape4: Entering etape4.php page");
|
dolibarr_install_syslog("--- etape4: Entering etape4.php page");
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
* \file htdocs/install/etape5.php
|
* \file htdocs/install/etape5.php
|
||||||
* \ingroup install
|
* \ingroup install
|
||||||
* \brief Last page of upgrade or install process
|
* \brief Last page of upgrade or install process
|
||||||
* \version $Id: etape5.php,v 1.103 2011/07/30 10:23:25 eldy Exp $
|
* \version $Id: etape5.php,v 1.104 2011/07/30 14:56:43 eldy Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
include_once("./inc.php");
|
include_once("./inc.php");
|
||||||
@@ -63,12 +63,9 @@ if (! isset($force_install_databasepass)) $force_install_databasepass='';
|
|||||||
if (! isset($force_install_databaserootlogin)) $force_install_databaserootlogin='';
|
if (! isset($force_install_databaserootlogin)) $force_install_databaserootlogin='';
|
||||||
if (! isset($force_install_databaserootpass)) $force_install_databaserootpass='';
|
if (! isset($force_install_databaserootpass)) $force_install_databaserootpass='';
|
||||||
if (! isset($force_install_lockinstall)) $force_install_lockinstall='';
|
if (! isset($force_install_lockinstall)) $force_install_lockinstall='';
|
||||||
$usedoliwamp=false;
|
$useforcedwizard=false;
|
||||||
if (file_exists("./install.forced.php"))
|
if (file_exists("./install.forced.php")) { $useforcedwizard=true; include_once("./install.forced.php"); }
|
||||||
{
|
else if (file_exists("/etc/dolibarr/install.forced.php")) { $useforcedwizard=include_once("/etc/dolibarr/install.forced.php"); }
|
||||||
$usedoliwamp=true;
|
|
||||||
include_once("./install.forced.php");
|
|
||||||
}
|
|
||||||
|
|
||||||
dolibarr_install_syslog("--- etape5: Entering etape5.php page", LOG_INFO);
|
dolibarr_install_syslog("--- etape5: Entering etape5.php page", LOG_INFO);
|
||||||
|
|
||||||
@@ -105,6 +102,7 @@ if ($action == "set")
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
pHeader($langs->trans("SetupEnd"),"etape5");
|
pHeader($langs->trans("SetupEnd"),"etape5");
|
||||||
|
print '<br>';
|
||||||
|
|
||||||
// Test if we can run a first install process
|
// Test if we can run a first install process
|
||||||
if (! GETPOST("versionfrom") && ! GETPOST("versionto") && ! is_writable($conffile))
|
if (! GETPOST("versionfrom") && ! GETPOST("versionto") && ! is_writable($conffile))
|
||||||
@@ -208,7 +206,7 @@ if ($action == "set" || preg_match('/upgrade/i',$action))
|
|||||||
if (! $resql) dol_print_error($db,'Error in setup program');
|
if (! $resql) dol_print_error($db,'Error in setup program');
|
||||||
$conf->global->MAIN_VERSION_LAST_INSTALL=$targetversion;
|
$conf->global->MAIN_VERSION_LAST_INSTALL=$targetversion;
|
||||||
|
|
||||||
if ($usedoliwamp)
|
if ($useforcedwizard)
|
||||||
{
|
{
|
||||||
dolibarr_install_syslog('install/etape5.php set MAIN_REMOVE_INSTALL_WARNING const to 1', LOG_DEBUG);
|
dolibarr_install_syslog('install/etape5.php set MAIN_REMOVE_INSTALL_WARNING const to 1', LOG_DEBUG);
|
||||||
$resql=$db->query("DELETE FROM llx_const WHERE ".$db->decrypt('name')."='MAIN_REMOVE_INSTALL_WARNING'");
|
$resql=$db->query("DELETE FROM llx_const WHERE ".$db->decrypt('name')."='MAIN_REMOVE_INSTALL_WARNING'");
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
* \file htdocs/install/fileconf.php
|
* \file htdocs/install/fileconf.php
|
||||||
* \ingroup install
|
* \ingroup install
|
||||||
* \brief Ask all informations required to build Dolibarr htdocs/conf/conf.php file (will be wrote on disk on next page)
|
* \brief Ask all informations required to build Dolibarr htdocs/conf/conf.php file (will be wrote on disk on next page)
|
||||||
* \version $Id: fileconf.php,v 1.92 2011/07/30 10:23:25 eldy Exp $
|
* \version $Id: fileconf.php,v 1.93 2011/07/30 14:56:43 eldy Exp $
|
||||||
*/
|
*/
|
||||||
include_once("./inc.php");
|
include_once("./inc.php");
|
||||||
|
|
||||||
@@ -39,8 +39,8 @@ $langs->load("install");
|
|||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
|
|
||||||
// You can force preselected values of the config step of Dolibarr by adding a file
|
// You can force preselected values of the config step of Dolibarr by adding a file
|
||||||
// install.forced.php into directory htdocs/install (This is the case with some installer
|
// install.forced.php into directory htdocs/install (This is the case with some wizard
|
||||||
// lile DoliWamp, DoliMamp or DoliBuntu.
|
// installer like DoliWamp, DoliMamp or DoliBuntu).
|
||||||
// We first init "forced values" to nothing.
|
// We first init "forced values" to nothing.
|
||||||
if (! isset($force_install_noedit)) $force_install_noedit='';
|
if (! isset($force_install_noedit)) $force_install_noedit='';
|
||||||
if (! isset($force_install_type)) $force_install_type='';
|
if (! isset($force_install_type)) $force_install_type='';
|
||||||
@@ -53,7 +53,9 @@ if (! isset($force_install_databasepass)) $force_install_databasepass='';
|
|||||||
if (! isset($force_install_databaserootlogin)) $force_install_databaserootlogin='';
|
if (! isset($force_install_databaserootlogin)) $force_install_databaserootlogin='';
|
||||||
if (! isset($force_install_databaserootpass)) $force_install_databaserootpass='';
|
if (! isset($force_install_databaserootpass)) $force_install_databaserootpass='';
|
||||||
// Now we load forced value from install.forced.php file.
|
// Now we load forced value from install.forced.php file.
|
||||||
if (file_exists("./install.forced.php")) include_once("./install.forced.php");
|
$useforcedwizard=false;
|
||||||
|
if (file_exists("./install.forced.php")) { $useforcedwizard=true; include_once("./install.forced.php"); }
|
||||||
|
else if (file_exists("/etc/dolibarr/install.forced.php")) { $useforcedwizard=include_once("/etc/dolibarr/install.forced.php"); }
|
||||||
|
|
||||||
dolibarr_install_syslog("Fileconf: Entering fileconf.php page");
|
dolibarr_install_syslog("Fileconf: Entering fileconf.php page");
|
||||||
|
|
||||||
@@ -159,7 +161,10 @@ if (! empty($force_install_message))
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<td class="label" valign="top">
|
<td class="label" valign="top">
|
||||||
<input type="text" size="60" value="<?php print $dolibarr_main_data_root; ?>"<?php print (empty($todoforce_install_main_data_root)?'':' disabled="true"'); ?> name="main_data_dir">
|
<?php
|
||||||
|
if ($force_install_noedit == 2) print '<input type="hidden" value="'.$dolibarr_main_data_root.'" name="main_data_dir">';
|
||||||
|
print '<input type="text" size="60" value="'.$dolibarr_main_data_root.'"'.(($force_install_noedit != 2)?'':' disabled="true"').' name="main_data_dir'.(($force_install_noedit != 2)?'':'_bis').'">';
|
||||||
|
?>
|
||||||
</td>
|
</td>
|
||||||
<td class="comment"><?php
|
<td class="comment"><?php
|
||||||
print $langs->trans("WithNoSlashAtTheEnd")."<br>";
|
print $langs->trans("WithNoSlashAtTheEnd")."<br>";
|
||||||
@@ -167,7 +172,7 @@ if (! empty($force_install_message))
|
|||||||
print $langs->trans("Examples").":<br>";
|
print $langs->trans("Examples").":<br>";
|
||||||
?>
|
?>
|
||||||
<ul>
|
<ul>
|
||||||
<li>/var/dolibarr_documents</li>
|
<li>/var/lib/dolibarr/documents</li>
|
||||||
<li>C:/My Documents/dolibarr/</li>
|
<li>C:/My Documents/dolibarr/</li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
@@ -205,7 +210,10 @@ if (empty($dolibarr_main_url_root))
|
|||||||
<td valign="top" class="label"><b> <?php echo $langs->trans("URLRoot"); ?></b>
|
<td valign="top" class="label"><b> <?php echo $langs->trans("URLRoot"); ?></b>
|
||||||
</td>
|
</td>
|
||||||
<td valign="top" class="label">
|
<td valign="top" class="label">
|
||||||
<input type="text" size="60" name="main_url"<?php print (empty($todoforce_install_main_data_root)?'':' disabled="true"'); ?> value="<?php print $dolibarr_main_url_root; ?>">
|
<?php
|
||||||
|
if ($force_install_noedit == 2) print '<input type="hidden" value="'.$dolibarr_main_url_root.'" name="main_url">';
|
||||||
|
print '<input type="text" size="60" value="'.$dolibarr_main_url_root.'"'.(($force_install_noedit != 2)?'':' disabled="true"').' name="main_url'.(($force_install_noedit != 2)?'':'_bis').'">';
|
||||||
|
?>
|
||||||
</td>
|
</td>
|
||||||
<td class="comment"><?php print $langs->trans("Examples").":<br>"; ?>
|
<td class="comment"><?php print $langs->trans("Examples").":<br>"; ?>
|
||||||
<ul>
|
<ul>
|
||||||
@@ -304,9 +312,9 @@ if (! empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == 'on') { // Enabled if t
|
|||||||
if ($force_install_noedit && $force_install_type) print '<input id="db_type" type="hidden" value="'.$force_install_type.'" name="db_type">';
|
if ($force_install_noedit && $force_install_type) print '<input id="db_type" type="hidden" value="'.$force_install_type.'" name="db_type">';
|
||||||
print '<select id="db_type" name="db_type'.(empty($force_install_noedit) || empty($force_install_type)?'':'_bis').'"'.($force_install_noedit && $force_install_type?' disabled="true"':'').'>';
|
print '<select id="db_type" name="db_type'.(empty($force_install_noedit) || empty($force_install_type)?'':'_bis').'"'.($force_install_noedit && $force_install_type?' disabled="true"':'').'>';
|
||||||
print $option;
|
print $option;
|
||||||
print '</select> </td>';
|
print '</select>';
|
||||||
|
|
||||||
?>
|
?></td>
|
||||||
<td class="comment"><?php echo $langs->trans("DatabaseType"); ?></td>
|
<td class="comment"><?php echo $langs->trans("DatabaseType"); ?></td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@@ -339,7 +347,7 @@ if (! empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == 'on') { // Enabled if t
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="label" valign="top"><b> <?php echo $langs->trans("DatabaseName"); ?> </b></td>
|
<td class="label" valign="top"><b> <?php echo $langs->trans("DatabaseName"); ?> </b></td>
|
||||||
|
|
||||||
<td class="label" valign="top"><input type="text" name="db_name"
|
<td class="label" valign="top"><input type="text" id="db_name" name="db_name"
|
||||||
value="<?php echo (! empty($dolibarr_main_db_name))?$dolibarr_main_db_name:$force_install_database; ?>"></td>
|
value="<?php echo (! empty($dolibarr_main_db_name))?$dolibarr_main_db_name:$force_install_database; ?>"></td>
|
||||||
<td class="comment"><?php echo $langs->trans("DatabaseName"); ?></td>
|
<td class="comment"><?php echo $langs->trans("DatabaseName"); ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -358,7 +366,7 @@ if (! empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == 'on') { // Enabled if t
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="label" valign="top"><b><?php echo $langs->trans("Login"); ?></b>
|
<td class="label" valign="top"><b><?php echo $langs->trans("Login"); ?></b>
|
||||||
</td>
|
</td>
|
||||||
<td class="label" valign="top"><input type="text" name="db_user"
|
<td class="label" valign="top"><input type="text" id="db_user" name="db_user"
|
||||||
value="<?php print (! empty($dolibarr_main_db_user))?$dolibarr_main_db_user:$force_install_databaselogin; ?>"></td>
|
value="<?php print (! empty($dolibarr_main_db_user))?$dolibarr_main_db_user:$force_install_databaselogin; ?>"></td>
|
||||||
<td class="comment"><?php echo $langs->trans("AdminLogin"); ?></td>
|
<td class="comment"><?php echo $langs->trans("AdminLogin"); ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -366,7 +374,7 @@ if (! empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == 'on') { // Enabled if t
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="label" valign="top"><b><?php echo $langs->trans("Password"); ?></b>
|
<td class="label" valign="top"><b><?php echo $langs->trans("Password"); ?></b>
|
||||||
</td>
|
</td>
|
||||||
<td class="label" valign="top"><input type="password" name="db_pass"
|
<td class="label" valign="top"><input type="password" id="db_pass" name="db_pass"
|
||||||
value="<?php print (! empty($dolibarr_main_db_pass))?$dolibarr_main_db_pass:$force_install_databasepass; ?>"></td>
|
value="<?php print (! empty($dolibarr_main_db_pass))?$dolibarr_main_db_pass:$force_install_databasepass; ?>"></td>
|
||||||
<td class="comment"><?php echo $langs->trans("AdminPassword"); ?></td>
|
<td class="comment"><?php echo $langs->trans("AdminPassword"); ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -375,8 +383,7 @@ if (! empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == 'on') { // Enabled if t
|
|||||||
<td class="label" valign="top"><?php echo $langs->trans("CreateUser"); ?>
|
<td class="label" valign="top"><?php echo $langs->trans("CreateUser"); ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="label" valign="top"><input type="checkbox"
|
<td class="label" valign="top"><input type="checkbox" id="db_create_user" name="db_create_user"
|
||||||
id="db_create_user" name="db_create_user"
|
|
||||||
<?php if (! empty($force_install_createuser)) print ' checked="on"'; ?>></td>
|
<?php if (! empty($force_install_createuser)) print ' checked="on"'; ?>></td>
|
||||||
<td class="comment"><?php echo $langs->trans("CheckToCreateUser"); ?>
|
<td class="comment"><?php echo $langs->trans("CheckToCreateUser"); ?>
|
||||||
</td>
|
</td>
|
||||||
@@ -393,7 +400,7 @@ if (! empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == 'on') { // Enabled if t
|
|||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label" valign="top"><?php echo $langs->trans("Login"); ?></td>
|
<td class="label" valign="top"><?php echo $langs->trans("Login"); ?></td>
|
||||||
<td class="label" valign="top"><input type="text" name="db_user_root" class="needroot"
|
<td class="label" valign="top"><input type="text" id="db_user_root" name="db_user_root" class="needroot"
|
||||||
value="<?php print (! empty($db_user_root))?$db_user_root:$force_install_databaserootlogin; ?>"></td>
|
value="<?php print (! empty($db_user_root))?$db_user_root:$force_install_databaserootlogin; ?>"></td>
|
||||||
<td class="label">
|
<td class="label">
|
||||||
<div class="comment"><?php echo $langs->trans("DatabaseRootLoginDescription"); ?>
|
<div class="comment"><?php echo $langs->trans("DatabaseRootLoginDescription"); ?>
|
||||||
@@ -404,8 +411,7 @@ if (! empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == 'on') { // Enabled if t
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="label" valign="top"><?php echo $langs->trans("Password"); ?>
|
<td class="label" valign="top"><?php echo $langs->trans("Password"); ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="label" valign="top"><input type="password" class="needroot"
|
<td class="label" valign="top"><input type="password" id="db_pass_root" name="db_pass_root" class="needroot"
|
||||||
name="db_pass_root"
|
|
||||||
value="<?php print (! empty($db_pass_root))?$db_pass_root:$force_install_databaserootpass; ?>"></td>
|
value="<?php print (! empty($db_pass_root))?$db_pass_root:$force_install_databaserootpass; ?>"></td>
|
||||||
<td class="label">
|
<td class="label">
|
||||||
<div class="comment"><?php echo $langs->trans("KeepEmptyIfNoPassword"); ?>
|
<div class="comment"><?php echo $langs->trans("KeepEmptyIfNoPassword"); ?>
|
||||||
@@ -436,6 +442,9 @@ jQuery(document).ready(function() {
|
|||||||
jQuery("#db_create_user").click(function() {
|
jQuery("#db_create_user").click(function() {
|
||||||
init_needroot();
|
init_needroot();
|
||||||
});
|
});
|
||||||
|
<?php if ($force_install_noedit) { ?>
|
||||||
|
jQuery("#db_pass").focus();
|
||||||
|
<?php } ?>
|
||||||
});
|
});
|
||||||
|
|
||||||
function checkDatabaseName(databasename) {
|
function checkDatabaseName(databasename) {
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
* \file htdocs/install/licence.php
|
* \file htdocs/install/licence.php
|
||||||
* \ingroup install
|
* \ingroup install
|
||||||
* \brief Page to show licence (Removed from install process to save time)
|
* \brief Page to show licence (Removed from install process to save time)
|
||||||
* \version $Id: licence.php,v 1.19 2011/07/30 10:23:25 eldy Exp $
|
* \version $Id: licence.php,v 1.20 2011/07/30 14:56:42 eldy Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
include_once("./inc.php");
|
include_once("./inc.php");
|
||||||
@@ -33,7 +33,9 @@ $langs->setDefaultLang($setuplang);
|
|||||||
$langs->load("install");
|
$langs->load("install");
|
||||||
|
|
||||||
// Init "forced values" to nothing. "forced values" are used after an doliwamp install wizard.
|
// Init "forced values" to nothing. "forced values" are used after an doliwamp install wizard.
|
||||||
if (file_exists("./install.forced.php")) include_once("./install.forced.php");
|
$useforcedwizard=false;
|
||||||
|
if (file_exists("./install.forced.php")) { $useforcedwizard=true; include_once("./install.forced.php"); }
|
||||||
|
else if (file_exists("/etc/dolibarr/install.forced.php")) { $useforcedwizard=include_once("/etc/dolibarr/install.forced.php"); }
|
||||||
|
|
||||||
dolibarr_install_syslog("Licence: Entering licence.php page");
|
dolibarr_install_syslog("Licence: Entering licence.php page");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user