Hi!

Following Henrie's advice, I'm trying to set up replication with the help of 
YAMP. I downloaded the whole thing from cvs and copied 
downgrade_unapproved.pl and delete_expired.pl to /var/lib/aegir/bin. I then 
modified repligard_staging_to_live.sh to use the new scripts. Everything is 
executed like it should, but it doesn't work. remove_unapproved.pl mixes up 
the special characters (umlauts, etc.) and unapproved content is still 
published. What can I do to change this?

Bye,

Andreas

P.S.: Here's my repligard_staging_to_live.sh: 


#!/bin/bash

#script to transfer data from staging database to live database.
REPLIGARD=/usr/local/bin/repligard
if [ -e /usr/bin/repligard ] ; then
  REPLIGARD=/usr/bin/repligard
fi
#0. fudge the page updates based on approval status

PERL=`which perl`

#1. dump the changes to a file
THISDATE=`/bin/date +%Y%m%d%H%M`

$REPLIGARD -c /var/lib/aegir/etc/repligard_hourly_dump_staging.conf -e /tmp/
hourly_export_${THISDATE}.xml.gz

gunzip /tmp/hourly_export_${THISDATE}.xml.gz

${PERL} /var/lib/aegir/bin/remove_unapproved.pl /tmp/hourly_export_
${THISDATE}.xml

${PERL} /var/lib/aegir/bin/delete_expired.pl /var/lib/aegir/etc/
repligard_hourly_dump_staging.conf /tmp/hourly_export_${THISDATE}.xml


#2. import the data into the live server

$REPLIGARD -c /var/lib/aegir/etc/repligard_hourly_import_live.conf \
    -i /tmp/hourly_export_${THISDATE}.xml

#3. delete the file!

rm /tmp/hourly_export_${THISDATE}.xml

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to