Fix app script
This commit is contained in:
parent
33c0f318b4
commit
449630bf5f
2 changed files with 4 additions and 2 deletions
|
@ -5,6 +5,8 @@ services:
|
||||||
container_name: invidious
|
container_name: invidious
|
||||||
image: quay.io/invidious/invidious:latest-arm64
|
image: quay.io/invidious/invidious:latest-arm64
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
dns:
|
||||||
|
- ${DNS_IP}
|
||||||
ports:
|
ports:
|
||||||
- "${APP_PORT}:3000"
|
- "${APP_PORT}:3000"
|
||||||
environment:
|
environment:
|
||||||
|
|
|
@ -143,7 +143,8 @@ fi
|
||||||
if [[ "$command" = "uninstall" ]]; then
|
if [[ "$command" = "uninstall" ]]; then
|
||||||
echo "Removing images for app ${app}..."
|
echo "Removing images for app ${app}..."
|
||||||
|
|
||||||
# compose "${app}" down --remove-orphans
|
compose "${app}" up --detach
|
||||||
|
compose "${app}" down --rmi all --remove-orphans
|
||||||
|
|
||||||
echo "Deleting app data for app ${app}..."
|
echo "Deleting app data for app ${app}..."
|
||||||
if [[ -d "${app_data_dir}" ]]; then
|
if [[ -d "${app_data_dir}" ]]; then
|
||||||
|
@ -158,7 +159,6 @@ fi
|
||||||
if [[ "$command" = "stop" ]]; then
|
if [[ "$command" = "stop" ]]; then
|
||||||
|
|
||||||
echo "Stopping app ${app}..."
|
echo "Stopping app ${app}..."
|
||||||
compose "${app}" down --remove-orphans --rmi all
|
|
||||||
compose "${app}" rm --force --stop
|
compose "${app}" rm --force --stop
|
||||||
|
|
||||||
exit
|
exit
|
||||||
|
|
Loading…
Add table
Reference in a new issue