mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
vdr: Migrate old configuration files.
This commit is contained in:
@@ -24,3 +24,13 @@
|
||||
. /opt/pakfire/lib/functions.sh
|
||||
./uninstall.sh
|
||||
./install.sh
|
||||
|
||||
OLD_DIR="/opt/vdr/etc"
|
||||
NEW_DIR="/etc/vdr"
|
||||
|
||||
for conf in ${OLD_DIR}/*.conf; do
|
||||
[ -f "${conf}" ] && continue
|
||||
|
||||
conf="$(basename ${conf})"
|
||||
mv -b "${OLD_DIR}/${conf}" "${NEW_DIR}/${conf}"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user