Files
docker-mods-uptime-kuma-tim…/root/etc/cont-init.d/94-r-src
T
2022-01-28 16:38:54 -05:00

13 lines
452 B
Plaintext

#!/usr/bin/with-contenv bash
echo "**** Adding r repo ****"
if ! dpkg -l | grep gnupg > /dev/null; then
apt-get update && apt-get install -y gnupg
fi
if [ ! -f "/etc/apt/sources.list.d/r.list" ]; then
curl -s https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | apt-key add -
source /etc/lsb-release
echo "deb https://cloud.r-project.org/bin/linux/ubuntu ${DISTRIB_CODENAME}-cran40/" > /etc/apt/sources.list.d/r.list
fi