dot dot dotfiles
at main 18 lines 542 B view raw
1#!/bin/bash 2 3if ! pgrep -f "/usr/local/searxng/dockerfiles/docker-entrypoint.sh" > /dev/null; then 4 5 if ! systemctl is-active docker.service > /dev/null; then 6 echo "Docker service is not running. Starting it now..." 7 systemctl start docker.service 8 sleep 2 9 fi 10 11 if ! docker ps -a | grep "searxng" > /dev/null; then 12 echo "Searxng is not running. Starting it now..." 13 docker compose -f /usr/local/searxng-docker/docker-compose.yaml up -d 14 sleep 2 15 fi 16fi 17 18firefox http://127.0.0.1:8080 &