diff --git a/unit-files/s@.service b/unit-files/s@.service index fd4cfdd630fd06a1376c3fca25500713bb5785a2..e95dc1207785628afb9ffff3858e4c7ebc49ceef 100644 --- a/unit-files/s@.service +++ b/unit-files/s@.service @@ -15,9 +15,9 @@ TimeoutStopSec=15 EnvironmentFile=-/system/%i/env Environment=HOSTNAME=%H WorkingDirectory=/system/%i/ -ExecStartPre=-/opt/bin/docker-compose rm -f -ExecStart=/bin/bash -euxc "/opt/bin/docker-compose up" -ExecStop=/opt/bin/docker-compose stop +ExecStartPre=-docker-compose rm -f +ExecStart=/bin/bash -euxc "docker-compose up" +ExecStop=docker-compose stop [Install] WantedBy=multi-user.target diff --git a/unit-files/u@.service b/unit-files/u@.service index 0d5f1192679b2d81602992ba856c69b136358908..a74d9f84e7fb8957672de0323ade2ccf90a7928d 100644 --- a/unit-files/u@.service +++ b/unit-files/u@.service @@ -15,9 +15,9 @@ TimeoutStopSec=15 EnvironmentFile=-/data/domains/%i/env Environment=HOSTNAME=%H WorkingDirectory=/data/domains/%i/ -ExecStartPre=-/opt/bin/docker-compose rm -f -ExecStart=/bin/bash -euxc "LETSENCRYPT_HOST=%i VIRTUAL_HOST=%i,www.%i /opt/bin/docker-compose up" -ExecStop=/opt/bin/docker-compose stop +ExecStartPre=-docker-compose rm -f +ExecStart=/bin/bash -euxc "LETSENCRYPT_HOST=%i VIRTUAL_HOST=%i,www.%i docker-compose up" +ExecStop=docker-compose stop [Install] WantedBy=multi-user.target