From 6dfe97205704a6b5689413485316e7deeb40919f Mon Sep 17 00:00:00 2001 From: Taken Date: Fri, 16 Feb 2024 14:50:01 +0100 Subject: [PATCH] Remoed the script Signed-off-by: Taken --- scripts/update | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 scripts/update diff --git a/scripts/update b/scripts/update deleted file mode 100644 index 57c3cf8..0000000 --- a/scripts/update +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -git pull && echo "Pulled the latest changes" - -if [ "$1" == "clear" ]; then - docker-compose down && echo "Shutted down the bot" - docker image rm node-cache && echo "Removed the cache" - docker image rm illegitimate && echo "Removed the bot image" - docker images | grep "" | awk -F" " '{print $3}' | xargs -I {} docker image rm {} && echo "Removed all dangling images" - docker build . -f Dockerfile.cache -t node-cach && echo "Rebuilt the cache" -fi - -docker-compose up -d --build && echo "Started the bot" \ No newline at end of file