Blame SOURCES/vsftpd_conf_migrate.sh

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