add env.sh

This commit is contained in:
horhik 2021-09-01 00:10:17 +03:00
parent a4ab8d97f3
commit 36435e5a90
2 changed files with 15 additions and 2 deletions

View File

@ -1,8 +1,11 @@
# Instagram2Mastodon 🐘
# Instagram2Fedi
Simple python 🐍 script for crossposting from instagram to Mastodon/Pixelfed
Simple python 🐍 script for crossposting from instagram to mastodon/pixelfed
## Installing
Just clone repo, build a docker container and run it
``` bash
git clone https://github.com/horhik/instagram2mastodon
cd instagram2mastodon
@ -10,4 +13,6 @@ docker build -t YOUR_CONTAINER_NAME .
docker container run -it -v $(pwd):/app YOUR_CONTAINER_NAME I2M_INSTAGRAM_USER I2M_INSTANCE I2M_TOKEN
```
You can write all needed variables in `./env.sh` and then do `source ./env.sh`

8
env.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
export YOUR_CONTAINER_NAME=
export I2M_INSTAGRAM_USER=
export I2M_INSTANCE=
export I2M_TOKEN=