mirror of https://github.com/tycrek/ass
parent
7d1e910b24
commit
baf3865b64
@ -0,0 +1,32 @@
|
|||||||
|
#!/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
|
@ -0,0 +1,28 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
ECHO Installing ass-docker for Windows...
|
||||||
|
|
||||||
|
REM Ensure that ./uploads/thumbnails/ exists
|
||||||
|
if not exist "./uploads/thumbnails/" md "./uploads/thumbnails/"
|
||||||
|
|
||||||
|
REM Ensure that ./share/ exists
|
||||||
|
if not exist "./share/" md "./share/"
|
||||||
|
|
||||||
|
REM Ensure that files config.json, auth.json, & data.json exist
|
||||||
|
if not exist "./config.json" echo. >> "./config.json"
|
||||||
|
if not exist "./auth.json" echo. >> "./auth.json"
|
||||||
|
if not exist "./data.json" echo. >> "./data.json"
|
||||||
|
|
||||||
|
ECHO Running setup...
|
||||||
|
|
||||||
|
REM docker-compose up -d
|
||||||
|
docker-compose up -d
|
||||||
|
|
||||||
|
REM Run setup within the container
|
||||||
|
docker-compose exec ass npm run setup
|
||||||
|
|
||||||
|
REM Restart the container when complete
|
||||||
|
docker-compose restart
|
||||||
|
|
||||||
|
REM Open the logs to ensure it is running
|
||||||
|
docker-compose logs -f --tail=50 --no-log-prefix ass
|
Loading…
Reference in new issue