Files
docker-mods-uptime-kuma-tim…/root/etc/cont-init.d/95-git
T
Eric Nemchik 58ed5113ab Universal standard numbering
and remove cleanup
2020-09-28 07:35:11 -05:00

17 lines
307 B
Plaintext

#!/usr/bin/with-contenv bash
# Determine if setup is needed
if [[ -n "$(command -v git)" ]]; then
## Ubuntu
if [ -f /usr/bin/apt ]; then
apt-get update
apt-get install --no-install-recommends -y \
git
fi
# Alpine
if [ -f /sbin/apk ]; then
apk add --no-cache \
git
fi
fi