Files
docker-mods-uptime-kuma-tim…/root/etc/cont-init.d/95-git
T
2021-06-29 11:35:40 -04:00

16 lines
304 B
Plaintext

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