Blame SOURCES/vsftpd_conf_migrate.sh

d83721
#!/bin/bash
d83721
#move old config files and symlink them
d83721
#shipped with vsftpd-2.0.1-6
d83721
PREFIX="vsftpd"
d83721
for file in $( ls /etc/${PREFIX}.* ); do
d83721
    if [ ! -L $file ]; then
d83721
        new=`echo $file | sed s/${PREFIX}\./${PREFIX}\\\\//g | sed s/\.rpmsave//g`
d83721
        mv -f ${file} ${new}
d83721
	ln -s ${new} ${file}
d83721
	echo $file moved to $new
d83721
    fi
d83721
done