Forum |  HardWare.fr | News | Articles | PC | Prix | S'identifier | S'inscrire | Shop Recherche
6626 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs
  Logiciels

  Configuration de OpenERP (Progiciel libre de gestion intégrée)

 



 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Configuration de OpenERP (Progiciel libre de gestion intégrée)

n°1225948
Sagittariu​s
Posté le 30-06-2010 à 22:58:48  profilanswer
 

Quelqu'un a-t-il monté OpenERP (remplaçant de TinyERP) sous Mandriva ?
 
Cette solution semble très intéressante et déjà bien utilisée: http://www.openerp.com/
 
Seulement, si une aide sommaire est disponible pour les paquets à installer: http://doc.openerp.com/install/lin [...] n-mandriva

urpmi python python-psycopg2 python-reportlab python-egenix-mx-base python-dateutil python-pytz python-pychart python-dot python-lxml python-vobject


 
il n'y a en revanche pas de scripts d'init ni de fichiers de configuration dans l'archive tar.
 
J'ai récupéré ces derniers sur un live-cd grec Mandriva avec openerp fonctionnel, readme:
 
/etc/openerp-server.conf

[options]
without_demo = True
; This is the password that allows database operations:
; admin_passwd = admin
upgrade = False
verbose = False
netrpc = True
xmlrpc = True
interface =
db_host = False
db_port = False
; Please uncomment the following line *after* you have created the
; database. It activates the auto module check on startup.
; db_name = terp
db_user = openerp
db_password = False
root_path = None
soap = False
translate_modules = ['all']
demo = {}
addons_path = None
reportgz = False
 
[debug]
env_info = False
 
[webdav]
enable = True
 
[httpd]
enable = True
; port = 8071
; interface =


 
/etc/init.d/openerp-server

#!/bin/bash
# openerp-server        This shell script takes care of starting and stopping
#                       OpenERP server
#
# chkconfig: 345 95 05
# description: OpenERP server
#
# pidfile: /var/run/openerp-server.pid
# config: /etc/openerp-server.conf
 
### BEGIN INIT INFO
# Provides: openerp-server
# Required-Start: postgresql
# Required-Stop: postgresql
# Should-Start: $network harddrake
# Default-Start: 345
# Short-Description: Launches the OpenERP server.
# Description: This startup script launches the OpenERP server.
### END INIT INFO
 
# Source function library.
. /etc/rc.d/init.d/functions
 
PIDFILE=/var/run/openerp/openerp-server.pid
LOCKFILE=/var/lock/subsys/openerp-server
LOGFILE=/var/log/openerp/openerp-server.log
 
OPTS="--pidfile=$PIDFILE --logfile=$LOGFILE"
 
prog="openerp-server"
desc="OpenERP Server Daemon"
 
# check if the openerp-server conf file is present, then use it
if [ -f /etc/openerp-server.conf ]; then
    OPTS="$OPTS -c /etc/openerp-server.conf"
fi
 
# Source function library
if [ -f /etc/init.d/functions ] ; then
    . /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
    . /etc/rc.d/init.d/functions
else
 exit 0
fi
 
# check the existence of the openerp-server script
[ -z "/usr/bin/openerp-server" ] && exit 0
 
RETVAL=0
 
start() {
    if [ -d /etc/openerp/start.d ] ; then
        gprintf "Preparing %s: " "$desc"
        run-parts --exit-on-error /etc/openerp/start.d
        RETVAL=$?
        echo
        [ $RETVAL -ne 0 ] && return $RETVAL
    fi
 
    gprintf "Starting %s (%s): " "$desc" "$prog"
    daemon --user openerp --check openerp-server \
    "/usr/bin/setsid /usr/bin/openerp-server \
    -c /etc/openerp-server.conf \
    --pidfile=$PIDFILE \
    --logfile=$LOGFILE &"
 
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $LOCKFILE
    return $RETVAL
}
 
stop() {
    gprintf "Stopping %s (%s): " "$desc" "$prog"
    kill -TERM `cat $PIDFILE` > /dev/null 2>&1
    RETVAL=$?
    if [ $RETVAL -eq 0 ] ; then
        rm -f $LOCKFILE
 
        echo_success
        echo
    else
        echo_failure
        echo
    fi
    if [ -d /etc/openerp/stop.d ] ; then
        gprintf "Clearing %s: " "$desc"
        run-parts /etc/openerp/stop.d
        echo
    fi
    return $RETVAL
}
 
restart() {
    stop
    start
}
 
condrestart() {
    [ -e $LOCKFILE ] && restart || :
}
 
status() {
    if [ -f $PIDFILE ] ; then
        checkpid `cat $PIDFILE`
        RETVAL=$?
        if [ $RETVAL -eq 0 ] ; then
            gprintf "%s is running...\n" "$prog"
        else
            gprintf "%s is stopped\n" "$prog"
        fi
    else
        gprintf "%s is stopped\n" "$prog"
    fi
    return $RETVAL
}
 
case "$1" in
start)
    start
    ;;
 
stop)
    stop
    ;;
 
restart|reload)
    restart
    ;;
 
condrestart)
    condrestart
    ;;
 
status)
    status
    ;;
 
probe)
    exit 0
    ;;
 
*)
    gprintf "Usage: %s {start|stop|status|restart|condrestart|reload}\n" "$0"
    exit 1
esac


 
Certificat X509 dans /etc/openerp/

# X.509 Certificate options
#
# DN options
 
# The organization of the subject.
organization = "Acme inc."
 
# The organizational unit of the subject.
unit = "dept."
 
# The locality of the subject.
# locality =
 
# The state of the certificate owner.
state = "Attiki"
 
# The country of the subject. Two letter code.
country = FR
 
# The common name of the certificate owner.
cn = "Some company"
 
# A user id of the certificate owner.
#uid = "clauper"
 
# If the supported DN OIDs are not adequate you can set
# any OID here.
# For example set the X.520 Title and the X.520 Pseudonym
# by using OID and string pairs.
#dn_oid = "2.5.4.12" "Dr." "2.5.4.65" "jackal"
 
# This is deprecated and should not be used in new
# certificates.
# pkcs9_email = "none@none.org"
 
# The serial number of the certificate
serial = 001
 
# In how many days, counting from today, this certificate will expire.
expiration_days = 700
 
# X.509 v3 extensions
 
# A dnsname in case of a WWW server.
#dns_name = "www.none.org"
#dns_name = "www.morethanone.org"
 
# An IP address in case of a server.
#ip_address = "192.168.1.1"
 
# An email in case of a person
email = "none@none.org"
 
# An URL that has CRLs (certificate revocation lists)
# available. Needed in CA certificates.
#crl_dist_points = "http://www.getcrl.crl/getcrl/"
 
# Whether this is a CA certificate or not
#ca
 
# Whether this certificate will be used for a TLS client
#tls_www_client
 
# Whether this certificate will be used for a TLS server
tls_www_server
 
# Whether this certificate will be used to sign data (needed
# in TLS DHE ciphersuites).
#signing_key
 
# Whether this certificate will be used to encrypt data (needed
# in TLS RSA ciphersuites). Note that it is prefered to use different
# keys for encryption and signing.
encryption_key
 
# Whether this key will be used to sign other certificates.
#cert_signing_key
 
# Whether this key will be used to sign CRLs.
#crl_signing_key
 
# Whether this key will be used to sign code.
#code_signing_key
 
# Whether this key will be used to sign OCSP data.
#ocsp_signing_key
 
# Whether this key will be used for time stamping.
#time_stamping_key


 
en enfin /etc/openerp/start.d/30start-demo

#!/bin/bash
 
# service postgresql start
 
pushd /usr/share/doc/openerp-server-5.0.6/demo/
    DB_NAME=dbdemo DB_RESTORESCRIPT=demodb.sql ./prep_database.sh
    popd > /dev/null
    # service openerp restart[root@localhost start.d]


 
 
Je vais essayer de voir si ça fonctionne ou comment l'adapter.


Message édité par Sagittarius le 30-06-2010 à 23:25:13
mood
Publicité
Posté le 30-06-2010 à 22:58:48  profilanswer
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  Logiciels

  Configuration de OpenERP (Progiciel libre de gestion intégrée)

 

Sujets relatifs
Configuration de BIND 9.3.6 sur CentOS release 5.4 (Final) ???Systéme de gestion à la dl de free
Discution libre a propos linuxLe topic vert - gestion d'énergie sous Linux
Besoin d'aide pour choix OS gestion d'un nasGestion de l'ATOM pine trail
[ubuntu] Gestion des paquets et des versionsserveur dédié / gentoo / configuration de sendmail [résolu]
avis sur une configuration htpc configuration ubuntu server
Plus de sujets relatifs à : Configuration de OpenERP (Progiciel libre de gestion intégrée)


Copyright © 1997-2018 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR