mirror of https://github.com/tycrek/ass
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
683 B
33 lines
683 B
#!/bin/sh
|
|
|
|
echo "Installing ass-docker for Linux..."
|
|
|
|
# Ensure that ./uploads/thumbnails/ exists
|
|
mkdir -p ./uploads/thumbnails/
|
|
|
|
# Ensure that ./share/ exists
|
|
mkdir -p ./share/
|
|
|
|
# Ensure that files config.json, auth.json, & data.json exist
|
|
for value in config.json auth.json data.json
|
|
do
|
|
if [ ! -f $value ]; then
|
|
echo "File $value does not exist. Creating..."
|
|
touch $value
|
|
fi
|
|
done
|
|
|
|
echo Running setup...
|
|
|
|
# docker-compose up -d
|
|
docker-compose up -d
|
|
|
|
# Run setup within the container
|
|
docker-compose exec ass npm run setup
|
|
|
|
# Restart the container when complete
|
|
docker-compose restart
|
|
|
|
# Open the logs to ensure it is running
|
|
docker-compose logs -f --tail=50 --no-log-prefix ass
|