9 lines
282 B
Plaintext
9 lines
282 B
Plaintext
|
#!/bin/sh -ex
|
||
|
# Ampache CLI helper
|
||
|
case $1 in
|
||
|
(update) shift; exec $0 "run:updateCatalog" "${@:---import}";;
|
||
|
(*:*|"") command="php -f /var/www/bin/cli";;
|
||
|
esac
|
||
|
sudo docker-compose -f $PROJECTS/ampache-docker/docker-compose.yml exec ampache su www-data -s /bin/sh -c "$command $*"
|
||
|
|