vdr: Migrate old configuration files.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 30 Apr 2013 10:07:02 +0000 (12:07 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 30 Apr 2013 10:07:02 +0000 (12:07 +0200)
src/paks/vdr/update.sh

index 89c40d0d7c5d3dd57b5944f3af4977d5f8d76760..2e116083f022c1643285d65088718e50bbda8cc9 100644 (file)
 . /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