Fixed screenshots path when importing from debshots1 installation

This commit is contained in:
Christoph Haas 2015-06-14 12:34:37 +02:00
parent c6fb7f1974
commit 8f5cd6f4e4

View file

@ -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