mint.sh aktualisiert
This commit is contained in:
parent
566616de1e
commit
63faae7d0f
4
mint.sh
4
mint.sh
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user