update install scripts
This commit is contained in:
@@ -25,10 +25,6 @@ rem Get docker-compose.yml
|
|||||||
echo Getting the docker-compose.yml file from Github
|
echo Getting the docker-compose.yml file from Github
|
||||||
curl -o docker-compose.yml https://raw.githubusercontent.com/pluja/whishper/main/docker-compose.yml
|
curl -o docker-compose.yml https://raw.githubusercontent.com/pluja/whishper/main/docker-compose.yml
|
||||||
|
|
||||||
rem Get nginx.conf
|
|
||||||
echo Getting the nginx.conf file from Github
|
|
||||||
curl -o nginx.conf https://raw.githubusercontent.com/pluja/whishper/main/nginx.conf
|
|
||||||
|
|
||||||
rem Get .env file
|
rem Get .env file
|
||||||
if exist .env (
|
if exist .env (
|
||||||
echo .env file already exists
|
echo .env file already exists
|
||||||
|
|||||||
@@ -60,11 +60,11 @@ fi
|
|||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo -e "ℹ️ Getting the docker-compose.yml file from Github"
|
echo -e "ℹ️ Getting the docker-compose.yml file from Github"
|
||||||
|
if [ "$gpu" = true ] ;then
|
||||||
|
curl -o docker-compose.yml https://raw.githubusercontent.com/pluja/whishper/main/docker-compose.gpu.yml > /dev/null 2>&1
|
||||||
|
else
|
||||||
curl -o docker-compose.yml https://raw.githubusercontent.com/pluja/whishper/main/docker-compose.yml > /dev/null 2>&1
|
curl -o docker-compose.yml https://raw.githubusercontent.com/pluja/whishper/main/docker-compose.yml > /dev/null 2>&1
|
||||||
sleep 1
|
fi
|
||||||
|
|
||||||
echo -e "ℹ️ Getting the nginx.conf file from Github"
|
|
||||||
curl -o nginx.conf https://raw.githubusercontent.com/pluja/whishper/main/nginx.conf > /dev/null 2>&1
|
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
# check if .env exists
|
# check if .env exists
|
||||||
@@ -86,10 +86,6 @@ else
|
|||||||
sleep 1
|
sleep 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$gpu" = true ] ;then
|
|
||||||
sed -i 's/COMPOSE_PROFILES=cpu/COMPOSE_PROFILES=gpu/g' .env
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Create necessary directories for libretranslate
|
# Create necessary directories for libretranslate
|
||||||
echo -e "ℹ️ Creating necessary directories for libretranslate"
|
echo -e "ℹ️ Creating necessary directories for libretranslate"
|
||||||
sudo mkdir -p ./whishper_data/libretranslate/{data,cache}
|
sudo mkdir -p ./whishper_data/libretranslate/{data,cache}
|
||||||
@@ -98,7 +94,7 @@ sleep 1
|
|||||||
# This permissions are for libretranslate docker container
|
# This permissions are for libretranslate docker container
|
||||||
echo -e "ℹ️ Setting permissions for libretranslate"
|
echo -e "ℹ️ Setting permissions for libretranslate"
|
||||||
case "$OSTYPE" in
|
case "$OSTYPE" in
|
||||||
darwin*) echo -e "ℹ️ macOS detected... Leaving permissions as is." ;;
|
darwin*) echo -e "ℹ️ macOS detected... Leaving permissions untouched." ;;
|
||||||
linux*) sudo chown -R 1032:1032 ./whishper_data/libretranslate ;;
|
linux*) sudo chown -R 1032:1032 ./whishper_data/libretranslate ;;
|
||||||
*) echo -e "${YELLOW}⚠️ unknown: $OSTYPE${NC}" ;;
|
*) echo -e "${YELLOW}⚠️ unknown: $OSTYPE${NC}" ;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user