Fixed screenshots path when importing from debshots1 installation
This commit is contained in:
parent
c6fb7f1974
commit
8f5cd6f4e4
1 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue