--- migrate.sh 2003/06/11 14:07:23 1.3 +++ migrate.sh 2003/06/11 14:09:18 1.4 @@ -23,6 +23,23 @@ fi # +# try to find .htusers and .docman.conf which should always exists in +# valid existing repository +# + +if [ ! -e "$dir/.htusers" ] ; then + echo "FATAL: can't find $dir/.htusers file... aborting automatic migration" + echo "(is this really docman 1.x site directory?)" + exit 1 +fi + +if [ ! -e "$dir/.docman.conf" ] ; then + echo "FATAL: can't find $dir/.docman.conf file... aborting automatic migration" + echo "(is this really docman 1.x site directory?)" + exit 1 +fi + +# # try to guess existing DirectoryIndex (docman.php) # @@ -43,21 +60,6 @@ fi # -# try to find .htusers and .docman.conf which should always exists in -# valid existing repository -# - -if [ ! -e "$dir/.htusers" ] ; then - echo "FATAL: can't find $dir/.htusers file... aborting automatic migration" - exit 1 -fi - -if [ ! -e "$dir/.docman.conf" ] ; then - echo "FATAL: can't find $dir/.docman.conf file... aborting automatic migration" - exit 1 -fi - -# # get some version numbers #