mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-25 17:53:23 -04:00
switch to hybrid
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
echo "**** installing nodejs dev environment ****"
|
||||
|
||||
|
||||
source /etc/lsb-release
|
||||
if [ "${DISTRIB_CODENAME}" = "bionic" ] || [ "${DISTRIB_CODENAME}" = "focal" ]; then
|
||||
if ! dpkg -l | grep gnupg > /dev/null; then
|
||||
apt-get update && apt-get install -y --no-install-recommends gnupg
|
||||
fi
|
||||
if [ ! -f "/etc/apt/sources.list.d/php8source.list" ]; then
|
||||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 14aa40ec0831756756d7f66c4f4ea0aae5267a6c
|
||||
echo "deb https://ppa.launchpadcontent.net/ondrej/php/ubuntu ${DISTRIB_CODENAME} main" \
|
||||
> /etc/apt/sources.list.d/php8source.list
|
||||
echo "**** Adding php8.1 and composer to package install list ****"
|
||||
echo "\
|
||||
php8.1 \
|
||||
composer" >> /mod-repo-packages-to-install.list
|
||||
fi
|
||||
elif ! dpkg -l | grep php > /dev/null || ! dpkg -l | grep composer > /dev/null; then
|
||||
echo "**** Adding php and composer to package install list ****"
|
||||
echo "\
|
||||
php \
|
||||
composer" >> /mod-repo-packages-to-install.list
|
||||
fi
|
||||
@@ -0,0 +1 @@
|
||||
oneshot
|
||||
@@ -0,0 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-mod-code-server-php8-add-package/run
|
||||
Reference in New Issue
Block a user