2004-11-11 10:41:35 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#move old config files and symlink them
|
|
|
|
#shipped with vsftpd-2.0.1-6
|
|
|
|
PREFIX="vsftpd"
|
2018-04-17 11:46:13 +00:00
|
|
|
for file in /etc/${PREFIX}.*; do
|
2004-11-11 10:41:35 +00:00
|
|
|
if [ ! -L $file ]; then
|
|
|
|
new=`echo $file | sed s/${PREFIX}\./${PREFIX}\\\\//g | sed s/\.rpmsave//g`
|
|
|
|
mv -f ${file} ${new}
|
|
|
|
ln -s ${new} ${file}
|
|
|
|
echo $file moved to $new
|
|
|
|
fi
|
|
|
|
done
|