mint.sh aktualisiert

This commit is contained in:
olli 2023-12-04 17:35:44 +01:00
parent 566616de1e
commit 63faae7d0f

View File

@ -36,7 +36,7 @@ defaultuserhome=$(getent passwd 1000 | cut -d: -f6)
if hostname | grep -q "^${defaultuser}-"
then
# remove old whoogle path if available
if [ -d /home/docker/whoogle.$(hostname) ]
if [ -f /home/docker/whoogle.$(hostname)/docker-compose.yml ]
then
docker-compose -f /home/docker/whoogle.$(hostname)/docker-compose.yml down
rm -rf /home/docker/whoogle.$(hostname)
@ -49,7 +49,7 @@ fi
if ! egrep -q "\.mint.${mydomain}$" /etc/hostname
then
# remove old whoogle path if available
if [ -d /home/docker/whoogle.$(hostname) ]
if [ -f /home/docker/whoogle.$(hostname)/docker-compose.yml ]
then
docker-compose -f /home/docker/whoogle.$(hostname)/docker-compose.yml down
rm -rf /home/docker/whoogle.$(hostname)