Updated the README and script to not pipe directly to sh but to save the script and run it so that it can properly start a TTY session

This commit is contained in:
2024-03-16 17:46:40 -06:00
parent 6fa002b153
commit 0214d68f7e
2 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -4,7 +4,7 @@ A demo repository with a basic HTPC configuration for demonstration and testing
## One-Command Run ## One-Command Run
To clone the repo and run the demo all in one go, the following command will download the [managarr-demo](./managarr-demo.sh) script and run it: To clone the repo and run the demo all in one go, the following command will download the [managarr-demo](./managarr-demo.sh) script and run it:
```shell ```shell
curl https://raw.githubusercontent.com/Dark-Alex-17/managarr-demo/main/managarr-demo.sh | sh curl https://raw.githubusercontent.com/Dark-Alex-17/managarr-demo/main/managarr-demo.sh > /tmp/managarr-demo.sh && bash /tmp/managarr-demo.sh
``` ```
**Note**: This script will only work on systems with `bash` installed. **Note**: This script will only work on systems with `bash` installed.
@@ -23,7 +23,8 @@ This demo will download a handful of docker images. To clean up after this demo,
docker image rm darkalex17/managarr &&\ docker image rm darkalex17/managarr &&\
docker image rm lscr.io/linuxserver/radarr &&\ docker image rm lscr.io/linuxserver/radarr &&\
docker image rm lscr.io/linuxserver/prowlarr &&\ docker image rm lscr.io/linuxserver/prowlarr &&\
rm -rf /tmp/managarr-demo rm -rf /tmp/managarr-demo &&\
rm -rf /tmp/managarr-demo.sh
``` ```
## Limitations ## Limitations
+2 -1
View File
@@ -17,4 +17,5 @@ set -e
docker compose -f "$DEMO_TEMP_DIR/docker-compose.yml" run --rm managarr &&\ docker compose -f "$DEMO_TEMP_DIR/docker-compose.yml" run --rm managarr &&\
docker compose -f "$DEMO_TEMP_DIR/docker-compose.yml" down &&\ docker compose -f "$DEMO_TEMP_DIR/docker-compose.yml" down &&\
docker image rm darkalex17/managarr docker image rm darkalex17/managarr &&\
rm -rf /tmp/managarr-demo.sh