New: Debian package build is finished.
This commit is contained in:
parent
26d188107f
commit
8fe17308cf
16
build/deb/install.forced.php
Normal file
16
build/deb/install.forced.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
$force_install_message='KeepDefaultValuesDeb';
|
||||
$force_install_main_data_root='/usr/share/dolibarr/documents';
|
||||
$force_install_type='mysqli';
|
||||
$force_install_port='3306';
|
||||
$force_install_database='dolibarr';
|
||||
$force_install_createdatabase='1';
|
||||
$force_install_databaselogin='dolibarrmysql';
|
||||
$force_install_databasepass='';
|
||||
$force_install_createuser='1';
|
||||
$force_install_databaserootlogin='root';
|
||||
$force_install_databaserootpass='';
|
||||
$force_install_dolibarrlogin='admin';
|
||||
$force_install_nophpinfo='1';
|
||||
$force_install_lockinstall='1';
|
||||
?>
|
||||
@ -46,10 +46,25 @@ echo Run the postinst script
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
configorig="/usr/share/dolibarr/build/deb/apache.conf"
|
||||
|
||||
# Copy include for apache.conf
|
||||
fileorig="/usr/share/dolibarr/build/deb/apache.conf"
|
||||
config="/etc/dolibarr/apache.conf"
|
||||
mkdir -p /etc/dolibarr
|
||||
cp -pr $configorig $config
|
||||
cp -p $fileorig $config
|
||||
|
||||
# Copy install.forced.php
|
||||
fileorig="/usr/share/dolibarr/build/deb/install.forced.php"
|
||||
config="/usr/share/dolibarr/htdocs/install/install.forced.php"
|
||||
cp -p $fileorig $config
|
||||
|
||||
# Create conf.php
|
||||
if [ ! -f /usr/share/dolibarr/htdocs/conf/conf.php ]
|
||||
then
|
||||
touch /usr/share/dolibarr/htdocs/conf/conf.php
|
||||
chown -R www-data.www-data /usr/share/dolibarr/htdocs/conf/conf.php;
|
||||
chmod -R 750 /usr/share/dolibarr/htdocs/conf/conf.php;
|
||||
fi
|
||||
|
||||
#db_reset "dolibarr/webserver"
|
||||
|
||||
|
||||
@ -32,6 +32,7 @@ includefile=/etc/dolibarr/apache.conf
|
||||
|
||||
case "$1" in
|
||||
purge)
|
||||
|
||||
db_get "dolibarr/postrm"
|
||||
if [ "$RET" = "true" ] ; then
|
||||
# Get database configuration
|
||||
@ -46,9 +47,9 @@ case "$1" in
|
||||
|
||||
. /usr/share/wwwconfig-common/${dbtype}-dropuser.sh
|
||||
. /usr/share/wwwconfig-common/${dbtype}-dropdb.sh
|
||||
|
||||
fi
|
||||
|
||||
# Remove include files
|
||||
for server in $webservers ; do
|
||||
error=""
|
||||
conffile="/etc/$server/httpd.conf"
|
||||
@ -65,16 +66,19 @@ case "$1" in
|
||||
done
|
||||
rm -rf /etc/dolibarr
|
||||
|
||||
# Restart
|
||||
servers="apache2-ssl apache2 mysql"
|
||||
. /usr/share/wwwconfig-common/restart.sh
|
||||
|
||||
# Remove file and conf file
|
||||
for dir in /usr/share/dolibarr ; do
|
||||
if [ -d ${dir} ] ; then rm -rf ${dir} ; fi
|
||||
done
|
||||
|
||||
|
||||
db_purge
|
||||
;;
|
||||
remove)
|
||||
rm -fr /usr/share/dolibarr/htdocs/install
|
||||
;;
|
||||
upgrade)
|
||||
;;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
$force_install_message_doliwamp='1';
|
||||
$force_install_message='KeepDefaultValues';
|
||||
$force_install_main_data_root='WAMPROOT/dolibarr_documents';
|
||||
$force_install_type='mysqli';
|
||||
$force_install_port='WAMPMYSQLPORT';
|
||||
|
||||
@ -367,8 +367,8 @@ if ($nboftargetok) {
|
||||
$ret=`cp -r "$SOURCE/build/deb/." "$BUILDROOT/$PROJECT/DEBIAN"`;
|
||||
$ret=`rm -fr $BUILDROOT/$PROJECT/DEBIAN/CVS`;
|
||||
|
||||
print "Reset config file\n";
|
||||
$ret=`> $BUILDROOT/$PROJECT/usr/share/$PROJECT/htdocs/conf/conf.php`;
|
||||
print "Remove config file\n";
|
||||
$ret=`rm -f $BUILDROOT/$PROJECT/usr/share/$PROJECT/htdocs/conf/conf.php`;
|
||||
|
||||
print "Edit version in file $BUILDROOT/$PROJECT/DEBIAN/control\n";
|
||||
open (SPECFROM,"<$SOURCE/build/deb/control") || die "Error";
|
||||
@ -405,10 +405,8 @@ if ($nboftargetok) {
|
||||
print "Set permissions/owners on files/dir\n";
|
||||
$ret=`chown -R root.root $BUILDROOT/$PROJECT`;
|
||||
$ret=`chown -R www-data.www-data $BUILDROOT/$PROJECT/usr/share/$PROJECT/documents`;
|
||||
$ret=`chown -R www-data.www-data $BUILDROOT/$PROJECT/usr/share/$PROJECT/htdocs/conf/conf.php`;
|
||||
$ret=`chmod -R 555 $BUILDROOT/$PROJECT`;
|
||||
$ret=`chmod -R 755 $BUILDROOT/$PROJECT/usr/share/$PROJECT/documents`;
|
||||
$ret=`chmod -R 755 $BUILDROOT/$PROJECT/usr/share/$PROJECT/htdocs/conf/conf.php`;
|
||||
$ret=`chmod -R 755 $BUILDROOT/$PROJECT/DEBIAN`;
|
||||
|
||||
print "Go to directory $BUILDROOT\n";
|
||||
|
||||
@ -52,7 +52,7 @@ print_fiche_titre($langs->trans("HomeArea"));
|
||||
|
||||
if (! empty($conf->global->MAIN_MOTD))
|
||||
{
|
||||
$conf->global->MAIN_MOTD=preg_replace('/<br([\s/]*)>$/i','',$conf->global->MAIN_MOTD);
|
||||
$conf->global->MAIN_MOTD=preg_replace('/<br(\s[\sa-zA-Z_="]*)?\/?>/i','<br>',$conf->global->MAIN_MOTD);
|
||||
if (! empty($conf->global->MAIN_MOTD))
|
||||
{
|
||||
print "\n<!-- Start of welcome text -->\n";
|
||||
|
||||
@ -310,14 +310,27 @@ else
|
||||
print $langs->trans("InstallEasy")." ";
|
||||
print $langs->trans("ChooseYourSetupMode");
|
||||
|
||||
|
||||
|
||||
$foundrecommandedchoice=0;
|
||||
|
||||
|
||||
// Array of install choices
|
||||
print '<table width="100%" border="1" cellpadding="2">';
|
||||
|
||||
# Sho first install line
|
||||
print '<tr><td nowrap="nowrap" align="center"><b>'.$langs->trans("FreshInstall").'</b></td>';
|
||||
print '<tr><td nowrap="nowrap" align="center"><b>'.$langs->trans("FreshInstall").'</b>';
|
||||
print '</td>';
|
||||
print '<td>';
|
||||
print $langs->trans("FreshInstallDesc").'</td>';
|
||||
print $langs->trans("FreshInstallDesc");
|
||||
if (empty($dolibarr_main_db_host)) // This means install process was not run
|
||||
{
|
||||
print '<br>';
|
||||
//print $langs->trans("InstallChoiceRecommanded",DOL_VERSION,$conf->global->MAIN_VERSION_LAST_UPGRADE);
|
||||
print '<center><div class="ok">'.$langs->trans("InstallChoiceSuggested").'</div></center>';
|
||||
// <img src="../theme/eldy/img/tick.png" alt="Ok"> ';
|
||||
$foundrecommandedchoice=1; // To show only once
|
||||
}
|
||||
print '</td>';
|
||||
print '<td align="center">';
|
||||
if ($allowinstall)
|
||||
{
|
||||
@ -333,6 +346,10 @@ else
|
||||
|
||||
# Show upgrade lines
|
||||
$allowupgrade=true;
|
||||
if (empty($dolibarr_main_db_host)) // This means install process was not run
|
||||
{
|
||||
$allowupgrade=false;
|
||||
}
|
||||
if (defined("MAIN_NOT_INSTALLED")) $allowupgrade=false;
|
||||
$migrationscript=array( //array('from'=>'2.0.0', 'to'=>'2.1.0'),
|
||||
//array('from'=>'2.1.0', 'to'=>'2.2.0'),
|
||||
@ -342,7 +359,6 @@ else
|
||||
array('from'=>'2.6.0', 'to'=>'2.7.0')
|
||||
);
|
||||
|
||||
$foundrecommandedchoice=0;
|
||||
$count=0;
|
||||
foreach ($migrationscript as $migarray)
|
||||
{
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
/**
|
||||
* \file htdocs/install/etape5.php
|
||||
* \ingroup install
|
||||
* \brief Page de fin d'installation ou de migration
|
||||
* \brief Last page of upgrade or install process
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
@ -285,9 +285,14 @@ if ($_POST["action"] == "set")
|
||||
else
|
||||
{
|
||||
// Install is finished, we create the lock file
|
||||
$fp = fopen("../../install.lock", "w");
|
||||
fwrite($fp, "This is a lock file to prevent use of install pages");
|
||||
fclose($fp);
|
||||
$lockfile="../../install.lock";
|
||||
$fp = @fopen($lockfile, "w");
|
||||
if ($fp)
|
||||
{
|
||||
fwrite($fp, "This is a lock file to prevent use of install pages");
|
||||
fclose($fp);
|
||||
@chmod($lockfile, octdec(444));
|
||||
}
|
||||
}
|
||||
|
||||
print "<br>";
|
||||
|
||||
@ -56,9 +56,9 @@ dolibarr_install_syslog("Fileconf: Entering fileconf.php page");
|
||||
|
||||
pHeader($langs->trans("ConfigurationFile"),"etape0");
|
||||
|
||||
if (! empty($force_install_message_doliwamp))
|
||||
if (! empty($force_install_message))
|
||||
{
|
||||
print '<b>'.$langs->trans("KeepDefaultValues").'</b><br>';
|
||||
print '<b>'.$langs->trans($force_install_message).'</b><br>';
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@ -460,7 +460,6 @@ alter table llx_propaldet modify special_code integer UNSIGNED DEFAULT 0;
|
||||
alter table llx_societe modify special_code integer NULL;
|
||||
alter table llx_c_forme_juridique modify code integer NOT NULL;
|
||||
|
||||
ALTER TABLE llx_adherent_options ADD INDEX uk_adherent_options (adhid);
|
||||
ALTER TABLE llx_bank_class ADD UNIQUE INDEX idx_bank_class_lineid (lineid);
|
||||
ALTER TABLE llx_c_ecotaxe ADD UNIQUE INDEX uk_c_ecotaxe (code);
|
||||
ALTER TABLE llx_c_methode_commande_fournisseur ADD UNIQUE INDEX uk_c_methode_commande_fournisseur (code);
|
||||
|
||||
@ -48,7 +48,7 @@ create table llx_adherent
|
||||
photo varchar(255), -- url vers photo
|
||||
statut smallint NOT NULL DEFAULT 0,
|
||||
public smallint NOT NULL DEFAULT 0, -- certain champ de la fiche sont ils public ou pas ?
|
||||
datefin datetime, -- date de fin de validité de la cotisation
|
||||
datefin datetime, -- date de fin de validite de la cotisation
|
||||
note text,
|
||||
datevalid datetime, -- date de validation
|
||||
datec datetime, -- date de creation
|
||||
|
||||
@ -48,15 +48,15 @@ ServerPortDescription=Database server port. Keep empty if unknown.
|
||||
DatabaseServer=Database server
|
||||
DatabaseName=Database name
|
||||
Login=Login
|
||||
AdminLogin=Login for Dolibarr database administrator. Keep empty if you connect anonymously
|
||||
AdminLogin=Login for Dolibarr database owner.
|
||||
Password=Password
|
||||
PasswordAgain=Retype password a second time
|
||||
AdminPassword=Password for Dolibarr database administrator. Keep empty if you connect anonymously
|
||||
AdminPassword=Password for Dolibarr database owner.
|
||||
CreateDatabase=Create database
|
||||
CreateUser=Create user
|
||||
DatabaseSuperUserAccess=Database - Superuser access
|
||||
DatabaseSuperUserAccess=Database server - Superuser access
|
||||
CheckToCreateDatabase=Check box if database does not exist and must be created.<br>In this case, you must fill the login/password for superuser account at the bottom of this page.
|
||||
CheckToCreateUser=Check box if login does not exist and must be created.<br>In this case, you must fill the login/password for superuser account at the bottom of this page.
|
||||
CheckToCreateUser=Check box if owner does not exist and must be created.<br>In this case, you must choose its login and password and also fill the login/password for the superuser account at the bottom of this page. If this box is unchecked, owner database and its passwords must exists.
|
||||
Experimental=(experimental)
|
||||
DatabaseRootLoginDescription=Login of the user allowed to create new databases or new users, useless if your database and your database login already exists (like when you're hosted by a web hosting provider).
|
||||
KeepEmptyIfNoPassword=Leave empty if user has no password (avoid this)
|
||||
@ -125,7 +125,8 @@ YouAskLoginCreationSoDolibarrNeedToConnect=You ask to create database login <b>%
|
||||
BecauseConnectionFailedParametersMayBeWrong=As connection failed, host or super user parameters must be wrong.
|
||||
OrphelinsPaymentsDetectedByMethod=Orphans payment detected by method %s
|
||||
RemoveItManuallyAndPressF5ToContinue=Remove it manually and press F5 to continue.
|
||||
KeepDefaultValues=You use the Doliwamp setup wizard, so values proposed here are already optimized. Change them only if you know what you do.
|
||||
KeepDefaultValues=You use the Dolibarr setup wizard from DoliWamp, so values proposed here are already optimized. Change them only if you know what you do.
|
||||
KeepDefaultValuesDeb=You use the Dolibarr setup wizard from an Ubuntu or Debian like package, so values proposed here are already optimized. Change them only if you know what you do.
|
||||
FieldRenamed=Field renamed
|
||||
IfLoginDoesNotExistsCheckCreateUser=If login does not exists yet, you must check option "Create user"
|
||||
ErrorConnection=Server "<b>%s</b>", database name "<b>%s</b>", login "<b>%s</b>", or database password may be wrong or PHP client version may be too old compared to database version.
|
||||
|
||||
@ -48,18 +48,18 @@ ServerPortDescription=Port du serveur. Ne rien mettre si inconnu.
|
||||
DatabaseServer=Serveur de la base de données
|
||||
DatabaseName=Nom de la base de données
|
||||
Login=Login
|
||||
AdminLogin=Login de l'administrateur de la base de données Dolibarr.
|
||||
AdminLogin=Login du propriétaire de la base de données Dolibarr.
|
||||
Password=Mot de passe
|
||||
PasswordAgain=Vérification du mot de passe
|
||||
AdminPassword=Mot de passe de l'administrateur de la base de données Dolibarr.
|
||||
AdminPassword=Mot de passe du propriétaire de la base de données Dolibarr.
|
||||
CreateDatabase=Créer la base de donnée
|
||||
CreateUser=Créer l'utilisateur
|
||||
DatabaseSuperUserAccess=Base de données - Accès super utilisateur
|
||||
DatabaseSuperUserAccess=Serveur de base de données - Accès super utilisateur
|
||||
CheckToCreateDatabase=Cochez cette option si la base de données n'existe pas et doit être créée.<br>Dans ce cas, il faut renseigner le login/mot de passe du superutilisateur au bas de cette page.
|
||||
CheckToCreateUser=Cochez cette option si le login n'existe pas et doit être créé.<br>Dans ce cas, il faut renseigner le login/mot de passe du superutilisateur au bas de cette page.
|
||||
CheckToCreateUser=Cochez cette option si l'utilisateur propriétaire n'existe pas et doit être créé.<br>Dans ce cas, il faut renseigner le nom et mot de passe du propriétaire à créer ainsi que le login/mot de passe du superutilisateur au bas de cette page. Si la case n'est pas cochée, le nom et mot de passe du propriétaire doivent exister.
|
||||
Experimental=(expérimental)
|
||||
DatabaseRootLoginDescription=Login de l'utilisateur de la base ayant les droits de création de bases de données ou de comptes pour la base, inutile si la base et son compte d'accès existe déjà (comme lorsque vous êtes chez un hébergeur).
|
||||
KeepEmptyIfNoPassword=Laissez vide si l'utilisateur n'a pas de mot de passe (à éviter)
|
||||
KeepEmptyIfNoPassword=Laissez vide si l'administrateur n'a pas de mot de passe
|
||||
SaveConfigurationFile=Enregistrement du fichier de configuration
|
||||
ConfigurationSaving=Enregistrement du fichier de configuration
|
||||
ServerConnection=Connexion au serveur
|
||||
@ -127,7 +127,8 @@ YouAskLoginCreationSoDolibarrNeedToConnect=Vous avez demandé la création du lo
|
||||
BecauseConnectionFailedParametersMayBeWrong=La connexion ayant échoué, les paramètres du serveur ou du super utilisateur sont peut-etre incorrects.
|
||||
OrphelinsPaymentsDetectedByMethod=Paiement orphelins detectés par la méthode %s
|
||||
RemoveItManuallyAndPressF5ToContinue=Supprimer le manuellement et appuyez sur F5 pour continuer.
|
||||
KeepDefaultValues=Comme vous utilisez l'assistant d'installation depuis DoliWamp, les valeurs proposées aux paramètres sont déjà optimisées. Ne les modifier qu'en connaissance de cause.
|
||||
KeepDefaultValues=Comme vous utilisez l'assistant d'installation Dolibarr depuis DoliWamp, les valeurs proposées aux paramètres sont déjà optimisées. Ne les modifier qu'en connaissance de cause.
|
||||
KeepDefaultValuesDeb=Comme vous utilisez l'assistant d'installation Dolibarr depuis un package Ubuntu ou Debian, les valeurs proposées aux paramètres sont déjà optimisées. Seuls le mot de passe du propriétaire de la base de données à créer et le mot de passe du superadministrateur du serveur de données sont à renseigner. Ne modifier les autres informations qu'en connaissance de cause.
|
||||
FieldRenamed=Champ renommé
|
||||
IfLoginDoesNotExistsCheckCreateUser=Si le login n'existe pas encore, vous devez cocher l'option "Créer l'utilisateur"
|
||||
ErrorConnection=Le serveur "<b>%s</b>", nom de base "<b>%s</b>", login "<b>%s</b>", ou mot de passe de la base de donnée est peut-être incorrect ou la version du client PHP trop ancienne par rapport à la version de la base de donnée.
|
||||
|
||||
@ -57,7 +57,6 @@ class DolEditor
|
||||
|
||||
|
||||
$content=dol_htmlentitiesbr($content); // If content is not HTML, we convert to HTML.
|
||||
//print "\n".$conf->global->MAIN_MOTD."\n".$content;exit;
|
||||
|
||||
$this->editor = new FCKeditor($htmlname);
|
||||
$this->editor->BasePath = DOL_URL_ROOT.'/includes/fckeditor/' ;
|
||||
|
||||
@ -78,8 +78,8 @@ if (! $result && $_SERVER["GATEWAY_INTERFACE"]) // If install not done and we ar
|
||||
}
|
||||
if (empty($dolibarr_main_db_host))
|
||||
{
|
||||
print 'Error: Dolibarr setup was run but was not completed.<br>'."\n";
|
||||
print 'Please, run <a href="install/index.php">Dolibarr install process</a> until the end...'."\n";
|
||||
print 'Dolibarr setup was run but was not completed.<br>'."\n";
|
||||
print 'Please, click <a href="install/index.php">here to finish Dolibarr install process</a> ...'."\n";
|
||||
exit;
|
||||
}
|
||||
if (empty($dolibarr_main_db_type)) $dolibarr_main_db_type='mysql'; // Pour compatibilite avec anciennes configs, si non defini, on prend 'mysql'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user