diff -u tinyerp-server-4.0.3/debian/changelog tinyerp-server-4.0.3/debian/changelog --- tinyerp-server-4.0.3/debian/changelog +++ tinyerp-server-4.0.3/debian/changelog @@ -1,3 +1,9 @@ +tinyerp-server (4.0.3-3ubuntu1) gutsy; urgency=low + + * Added creation of log file. + + -- Gabriel Velo Thu, 13 Mar 2008 00:44:59 -0200 + tinyerp-server (4.0.3-3) unstable; urgency=medium * Setting database port to 5433 (Closes: #443626). diff -u tinyerp-server-4.0.3/debian/postinst tinyerp-server-4.0.3/debian/postinst --- tinyerp-server-4.0.3/debian/postinst +++ tinyerp-server-4.0.3/debian/postinst @@ -3,12 +3,19 @@ set -e USER="terp" +LOGFILE="/var/log/tinyerp.log" case "$1" in configure) # Creating system user adduser --no-create-home --quiet --system $USER + # Creating log file + touch $LOGFILE + chown $USER:adm $LOGFILE + chmod 0640 $LOGFILE + + echo echo "* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *" echo "* Tiny ERP uses a PostgreSQL database to store its data. With the first *" diff -u tinyerp-server-4.0.3/debian/default tinyerp-server-4.0.3/debian/default --- tinyerp-server-4.0.3/debian/default +++ tinyerp-server-4.0.3/debian/default @@ -1,5 +1,8 @@ # Defaults for tinyerp-server initscript +# Specify the log file (Default: /etc/tinyerp-server.log). +LOGFILE="/var/log/tinyerp.log" + # Specify an alternate config file (Default: /etc/tinyerp-server.conf). CONFIGFILE="/etc/tinyerp-server.conf" @@ -31 +34 @@ -DAEMON_OPTS="--config=$CONFIGFILE --port=$PORT --interface=$INTERFACE --database=$DATABASE_NAME --db_user=$DATABASE_USER --db_password=$DATABASE_PASSWORD --db_host=$DATABASE_HOST --db_port=$DATABASE_PORT" +DAEMON_OPTS="--config=$CONFIGFILE --port=$PORT --interface=$INTERFACE --database=$DATABASE_NAME --db_user=$DATABASE_USER --db_password=$DATABASE_PASSWORD --db_host=$DATABASE_HOST --db_port=$DATABASE_PORT --logfile=$LOGFILE"