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}-"
|
if hostname | grep -q "^${defaultuser}-"
|
||||||
then
|
then
|
||||||
# remove old whoogle path if available
|
# remove old whoogle path if available
|
||||||
if [ -d /home/docker/whoogle.$(hostname) ]
|
if [ -f /home/docker/whoogle.$(hostname)/docker-compose.yml ]
|
||||||
then
|
then
|
||||||
docker-compose -f /home/docker/whoogle.$(hostname)/docker-compose.yml down
|
docker-compose -f /home/docker/whoogle.$(hostname)/docker-compose.yml down
|
||||||
rm -rf /home/docker/whoogle.$(hostname)
|
rm -rf /home/docker/whoogle.$(hostname)
|
||||||
@ -49,7 +49,7 @@ fi
|
|||||||
if ! egrep -q "\.mint.${mydomain}$" /etc/hostname
|
if ! egrep -q "\.mint.${mydomain}$" /etc/hostname
|
||||||
then
|
then
|
||||||
# remove old whoogle path if available
|
# remove old whoogle path if available
|
||||||
if [ -d /home/docker/whoogle.$(hostname) ]
|
if [ -f /home/docker/whoogle.$(hostname)/docker-compose.yml ]
|
||||||
then
|
then
|
||||||
docker-compose -f /home/docker/whoogle.$(hostname)/docker-compose.yml down
|
docker-compose -f /home/docker/whoogle.$(hostname)/docker-compose.yml down
|
||||||
rm -rf /home/docker/whoogle.$(hostname)
|
rm -rf /home/docker/whoogle.$(hostname)
|
||||||
|
Loading…
Reference in New Issue
Block a user