Skip to content

Commit 29de296

Browse files
committed
fixing thumb issue with container tmp file
1 parent de0ba47 commit 29de296

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

net/server/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fi
1919
cd /app/databag/net/server
2020
if [[ "$DEV" == "1" ]]; then
2121
touch nohup.out
22-
CGO_ENABLED=1 nohup go run main.go -p $DATABAG_PORT -w /app/databag/net/web/build -s /var/lib/databag -t /opt/databag/transform &
22+
nohup ./databag -p $DATABAG_PORT -w /app/databag/net/web/build -s /var/lib/databag -t /opt/databag/transform &
2323
tail -f nohup.out
2424
else
2525
./databag -p $DATABAG_PORT -w /app/databag/net/web/build -s /var/lib/databag -t /opt/databag/transform

net/transform/transform_vthumb.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
22
set -e
3-
TMPFILE=$(mktemp /tmp/databag-XXXXX)
3+
TMPFILE=$(mktemp)
44
ffmpeg -ss $3 -i $1 -y -vframes 1 -q:v 2 $TMPFILE.jpg
55
convert -strip $TMPFILE.jpg -auto-orient -resize '320x320>' $2

0 commit comments

Comments
 (0)