Blame SOURCES/vsftpd_conf_migrate.sh

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