mirror of https://github.com/tycrek/ass
parent
e94c0bceb8
commit
36be2d0bca
@ -1,31 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
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
|
||||
touch $value
|
||||
fi
|
||||
done
|
||||
|
||||
# Wait for user to confirm
|
||||
echo "Continuing will run docker compose. Continue? (Press Ctrl+C to abort)"
|
||||
read -n 1 -s -r -p "Press any key to continue..."
|
||||
|
||||
echo Running setup...
|
||||
|
||||
# Bring up the container and run the setup
|
||||
docker compose up -d && docker compose exec ass npm run setup && docker compose restart
|
||||
|
||||
# Done!
|
||||
echo "ass-docker for Linux installed!"
|
||||
echo "Run the following to view commands:"
|
||||
echo "$ docker compose logs -f --tail=50 --no-log-prefix ass"
|
@ -1,28 +0,0 @@
|
||||
@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"
|
||||
|
||||
REM Wait for user to confirm
|
||||
ECHO Continuing will run docker compose. Continue? (Press Ctrl+C to abort)
|
||||
PAUSE
|
||||
|
||||
ECHO Running setup...
|
||||
|
||||
REM Bring up the container and run the setup
|
||||
docker compose up -d && docker compose exec ass npm run setup && docker compose restart
|
||||
|
||||
REM Done!
|
||||
ECHO ass-docker for Windows installed!
|
||||
ECHO Run the following to view commands:
|
||||
ECHO > docker compose logs -f --tail=50 --no-log-prefix ass
|
Loading…
Reference in new issue