| 1 |
#!/bin/sh |
| 2 |
set -e |
| 3 |
|
| 4 |
debconfdir="/var/cache/debconf" |
| 5 |
cdebconfdir="/var/lib/cdebconf" |
| 6 |
|
| 7 |
if [ ! -d $cdebconfdir ]; then |
| 8 |
mkdir -p $cdebconfdir |
| 9 |
fi |
| 10 |
|
| 11 |
if [ -f $debconfdir/templates.dat -a ! -f $cdebconfdir/templates.dat ]; then |
| 12 |
|
| 13 |
cp $debconfdir/templates.dat $debconfdir/templates.dat.old |
| 14 |
mv $debconfdir/templates.dat $cdebconfdir/templates.dat |
| 15 |
ln -s $cdebconfdir/templates.dat $debconfdir/templates.dat |
| 16 |
|
| 17 |
fi |
| 18 |
|
| 19 |
if [ -f $debconfdir/config.dat -a ! -f $cdebconfdir/questions.dat ]; then |
| 20 |
|
| 21 |
cp $debconfdir/config.dat $debconfdir/config.dat.old |
| 22 |
mv $debconfdir/config.dat $cdebconfdir/questions.dat |
| 23 |
ln -s $cdebconfdir/questions.dat $debconfdir/config.dat |
| 24 |
|
| 25 |
fi |
| 26 |
|
| 27 |
if [ -f $debconfdir/passwords.dat -a ! -f $cdebconfdir/passwords.dat ]; then |
| 28 |
|
| 29 |
cp $debconfdir/passwords.dat $debconfdir/passwords.dat.old |
| 30 |
mv $debconfdir/passwords.dat $cdebconfdir/passwords.dat |
| 31 |
ln -s $cdebconfdir/passwords.dat $debconfdir/passwords.dat |
| 32 |
|
| 33 |
fi |
| 34 |
|
| 35 |
#DEBHELPER# |
| 36 |
|