secure imaginary with imaginary_key

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2024-03-04 11:48:21 +01:00
parent 6bc2d1d6ae
commit fd3f6d9018
4 changed files with 22 additions and 6 deletions

View file

@ -0,0 +1,7 @@
#!/bin/bash
if [ -z "$IMAGINARY_SECRET" ]; then
imaginary -return-size -max-allowed-resolution 222.2 "$@"
else
imaginary -return-size -max-allowed-resolution 222.2 -key "$IMAGINARY_SECRET" "$@"
fi