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