mirror of
https://github.com/samply/bridgehead.git
synced 2025-06-17 03:40:14 +02:00
Unfortunately, we cannot support docker snap installations, cf. https://askubuntu.com/questions/1374480/docker-compose-installed-with-snap-gives-error-on-yml-file
This reverts commit 292d71b6c2
.
This commit is contained in:
@ -11,22 +11,6 @@ detectCompose() {
|
||||
fi
|
||||
}
|
||||
|
||||
# https://unix.stackexchange.com/questions/539147
|
||||
systemctl-exists() {
|
||||
[ $(systemctl list-unit-files "${1}*" | wc -l) -gt 3 ]
|
||||
}
|
||||
|
||||
dockerUnitName() {
|
||||
if systemctl-exists docker.service; then
|
||||
echo "docker.service"
|
||||
elif systemctl-exists snap.docker.dockerd.service; then
|
||||
echo "snap.docker.dockerd.service"
|
||||
else
|
||||
log ERROR "Unable to detect docker systemd unit."
|
||||
fail_and_report 1 "Unable to detect docker systemd unit."
|
||||
fi
|
||||
}
|
||||
|
||||
exitIfNotRoot() {
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
log "ERROR" "Please run as root"
|
||||
|
Reference in New Issue
Block a user