fixed copying of samples

This commit is contained in:
Roland Gruber 2008-02-16 10:25:06 +00:00
parent 426c2339d8
commit b418ede0b2
1 changed files with 10 additions and 3 deletions

View File

@ -5,21 +5,28 @@ set -e
. /usr/share/debconf/confmodule . /usr/share/debconf/confmodule
db_version 2.0 || [ $? -lt 30 ] db_version 2.0 || [ $? -lt 30 ]
cd /var/lib/ldap-account-manager/config-samples/profiles cd /usr/share/ldap-account-manager/config-samples/profiles
files=`ls -a default.*` files=`ls -a default.*`
for file in $files; do for file in $files; do
if [ ! -f /var/lib/ldap-account-manager/config/profiles/$file ]; then if [ ! -f /var/lib/ldap-account-manager/config/profiles/$file ]; then
cp $file /var/lib/ldap-account-manager/config/profiles/$file cp $file /var/lib/ldap-account-manager/config/profiles/$file
fi fi
done done
cd /var/lib/ldap-account-manager/config-samples/pdf cd /usr/share/ldap-account-manager/config-samples/pdf
files=`ls -a default.*` files=`ls -a default.*`
for file in $files; do for file in $files; do
if [ ! -f /var/lib/ldap-account-manager/config/pdf/$file ]; then if [ ! -f /var/lib/ldap-account-manager/config/pdf/$file ]; then
cp $file /var/lib/ldap-account-manager/config/pdf/$file cp $file /var/lib/ldap-account-manager/config/pdf/$file
fi fi
done done
cd /var/lib/ldap-account-manager/config-samples/selfService cd /usr/share/ldap-account-manager/config-samples/pdf/logos
files=`ls -a default.*`
for file in $files; do
if [ ! -f /var/lib/ldap-account-manager/config/pdf/logos/$file ]; then
cp $file /var/lib/ldap-account-manager/config/pdf/logos/$file
fi
done
cd /usr/share/ldap-account-manager/config-samples/selfService
files=`ls -a default.*` files=`ls -a default.*`
for file in $files; do for file in $files; do
if [ ! -f /var/lib/ldap-account-manager/config/selfService/$file ]; then if [ ! -f /var/lib/ldap-account-manager/config/selfService/$file ]; then