Merge pull request #427 from linuxserver/code-server-r-s6v3

switch to hybrid (code-server-r)
This commit is contained in:
aptalca
2022-09-04 21:21:08 -04:00
committed by GitHub
6 changed files with 19 additions and 0 deletions
@@ -0,0 +1,17 @@
#!/usr/bin/with-contenv bash
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
echo "**** Adding r packages to install list ****"
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
echo "\
build-essential \
r-base" >> /mod-repo-packages-to-install.list
else
echo "**** r packages already installed, skipping ****"
fi
@@ -0,0 +1 @@
oneshot
@@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-mod-code-server-r-add-package/run