From 4284f8b08988c2797d4eab341026bf3d579e97ff Mon Sep 17 00:00:00 2001 From: seebaer1976 Date: Fri, 9 Oct 2015 13:45:19 +0200 Subject: [PATCH] Update preinst Update links --- distros/ubuntu1504/preinst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/distros/ubuntu1504/preinst b/distros/ubuntu1504/preinst index 6cd01ba559..6332f521df 100755 --- a/distros/ubuntu1504/preinst +++ b/distros/ubuntu1504/preinst @@ -3,15 +3,15 @@ set -e abort=false -if [ -L /usr/share/zoneminder/events ]; then - l=$(readlink /usr/share/zoneminder/events) - if [ "$l" != "/var/cache/zoneminder/events" ]; then +if [ -L /usr/share/zoneminder/www/events ]; then + l=$(readlink /usr/share/zoneminder/www/events) + if [ "$l" != "/var/cache/zoneminder/www/events" ]; then abort=true fi fi -if [ -L /usr/share/zoneminder/images ]; then - l=$(readlink /usr/share/zoneminder/images ) - if [ "$l" != "/var/cache/zoneminder/images" ]; then +if [ -L /usr/share/zoneminder/www/images ]; then + l=$(readlink /usr/share/zoneminder/www/images ) + if [ "$l" != "/var/cache/zoneminder/www/images" ]; then abort=true fi fi @@ -19,9 +19,9 @@ fi if [ "$abort" = "true" ]; then cat >&2 << EOF Aborting installation of zoneminder due to non-default symlinks in -/usr/share/zoneminder for the images and/or events directory, which could +/usr/share/zoneminder/www for the images and/or events directory, which could result in loss of data. Please move your data in each of these directories to -/var/cache/zoneminder before installing zoneminder from the package. +/var/cache/zoneminder/www before installing zoneminder from the package. EOF exit 1