summaryrefslogtreecommitdiff
path: root/vsftpd_conf_migrate.sh
diff options
context:
space:
mode:
Diffstat (limited to 'vsftpd_conf_migrate.sh')
-rw-r--r--vsftpd_conf_migrate.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/vsftpd_conf_migrate.sh b/vsftpd_conf_migrate.sh
new file mode 100644
index 0000000..582c20d
--- /dev/null
+++ b/vsftpd_conf_migrate.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+#move old config files and symlink them
+#shipped with vsftpd-2.0.1-6
+shopt -s nullglob
+PREFIX="vsftpd"
+for file in /etc/${PREFIX}.*; do
+ 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