From 8f5cd6f4e4f381b124fcf61fc82e4ed23ddcb7ae Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Sun, 14 Jun 2015 12:34:37 +0200 Subject: [PATCH] Fixed screenshots path when importing from debshots1 installation --- bin/get-data-from-old-live-server.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/get-data-from-old-live-server.sh b/bin/get-data-from-old-live-server.sh index cd48b3a..888b199 100755 --- a/bin/get-data-from-old-live-server.sh +++ b/bin/get-data-from-old-live-server.sh @@ -1,7 +1,8 @@ #!/bin/sh -ex #IMAGE_DEST=../public -IMAGE_DEST=/local/screenshots +IMAGE_DEST=public +#IMAGE_DEST=/local/screenshots #DB_HOST=localhost DB_HOST=torf @@ -24,8 +25,9 @@ psql -h $DB_HOST debshots debshots < /tmp/debshots.sql echo Unpacking screenshots tarball #cd ../public -cd $IMAGE_DEST -tar xf /tmp/debshots-screenshots.tar +#cd $IMAGE_DEST +tar -C $IMAGE_DEST -xf /tmp/debshots-screenshots.tar #mv public/live/screenshots/approved public/screenshots #rm -r public/live +ln -fs public/live/screenshots/approved public/screenshots