forked from wallabag/docker
This adds the ability to run wallabag async import worker that interacts with a redis service. Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
14 lines
412 B
Bash
Executable File
14 lines
412 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ "$1" = "wallabag" ];then
|
|
ansible-playbook -i /etc/ansible/hosts /etc/ansible/entrypoint.yml -c local
|
|
exec s6-svscan /etc/s6/
|
|
fi
|
|
if [ "$1" = "import" ];then
|
|
ansible-playbook -i /etc/ansible/hosts /etc/ansible/entrypoint.yml -c local --skip-tags=firstrun
|
|
cd /var/www/wallabag/
|
|
exec su -c "bin/console wallabag:import:redis-worker -e=prod $2 -vv" -s /bin/sh nobody
|
|
fi
|
|
|
|
exec "$@"
|