You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
348 B
14 lines
348 B
2 months ago
|
#!/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
|