mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-19 09:53:02 -04:00
Merge pull request #263 from linuxserver/code-server-powershell-focal
code-server-powershell detect focal
This commit is contained in:
@@ -1,12 +1,19 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
ARCH=$(uname -m)
|
ARCH=$(uname -m)
|
||||||
|
source /etc/lsb-release
|
||||||
|
|
||||||
if [ -f "/powershell/powershell_${ARCH}.tar.gz" ]; then
|
if [ -f "/powershell/powershell_${ARCH}.tar.gz" ]; then
|
||||||
echo "Installing PowerShell"
|
echo "Installing PowerShell"
|
||||||
|
if [ "${DISTRIB_CODENAME}" == "bionic" ]; then
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
libicu60 \
|
libicu60 \
|
||||||
libunwind8
|
libunwind8
|
||||||
|
elif [ "${DISTRIB_CODENAME}" == "focal" ]; then
|
||||||
|
apt-get install -y \
|
||||||
|
libicu66 \
|
||||||
|
libunwind8
|
||||||
|
fi
|
||||||
tar xf "/powershell/powershell_${ARCH}.tar.gz" -C /powershell
|
tar xf "/powershell/powershell_${ARCH}.tar.gz" -C /powershell
|
||||||
rm -rf \
|
rm -rf \
|
||||||
/powershell/powershell_x86_64.tar.gz \
|
/powershell/powershell_x86_64.tar.gz \
|
||||||
|
|||||||
Reference in New Issue
Block a user