add more variabes in env.sh

This commit is contained in:
horhik 2021-11-22 15:41:47 +03:00
parent 68f475f6e5
commit 971e74d254
2 changed files with 6 additions and 1 deletions

5
env.sh
View File

@ -1,8 +1,13 @@
#!b/in/sh
# Required
export YOUR_CONTAINER_NAME=
export I2M_INSTAGRAM_USER=
export I2M_INSTANCE=
export I2M_TOKEN=
export I2M_CHECK_INTERVAL=3600 #1 hour
export I2M_POST_INTERVAL=3600 #1 hour
export I2M_USE_MASTODON=4 #max carousel length is 4, if there's no limit set to -1
export I2M_FETCH_COUNT=5 # how many instagram posts to fetch per check_interval

2
run.sh
View File

@ -1,3 +1,3 @@
#!/bin/sh
source ./env.sh
docker build -t $YOUR_CONTAINER_NAME .; docker container run -it -v $(pwd):/app $YOUR_CONTAINER_NAME --use-docker 1 --instagram-user $I2M_INSTAGRAM_USER --instance $I2M_INSTANCE --token $I2M_TOKEN
docker build -t $YOUR_CONTAINER_NAME .; docker container run -it -v $(pwd):/app $YOUR_CONTAINER_NAME --use-docker 1 --instagram-user $I2M_INSTAGRAM_USER --instance $I2M_INSTANCE --token $I2M_TOKEN --check-interval $I2M_CHECK_INTERVAL --post-interval $I2M_POST_INTERVAL --fetch-count $I2M_FETCH_COUNT --use-mastodon $I2M_USE_MASTODON