diff options
author | CoprDistGit <infra@openeuler.org> | 2024-07-15 09:01:07 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-07-15 09:01:07 +0000 |
commit | a69ae46c92199effdb2f0903e5416af42fd8ad69 (patch) | |
tree | 3700124d2256f460e93567fa6f3cfa6ec0d44787 /vsftpd_conf_migrate.sh | |
parent | 908f6497506278a654656b2ed78b9cf08a892218 (diff) |
automatic import of vsftpdopeneuler24.03_LTSopeneuler22.03_LTS_SP4openeuler22.03_LTS_SP3openeuler20.03_LTS_SP4openeuler20.03
Diffstat (limited to 'vsftpd_conf_migrate.sh')
-rw-r--r-- | vsftpd_conf_migrate.sh | 13 |
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 |