From: Michael Tremer Date: Tue, 30 Apr 2013 10:07:02 +0000 (+0200) Subject: vdr: Migrate old configuration files. X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=commitdiff_plain;h=311f1c634c1f902c92776afb9ef54c4d0c1623cb vdr: Migrate old configuration files. --- diff --git a/src/paks/vdr/update.sh b/src/paks/vdr/update.sh index 89c40d0d7..2e116083f 100644 --- a/src/paks/vdr/update.sh +++ b/src/paks/vdr/update.sh @@ -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