mirror of
https://github.com/linuxserver/docker-mods.git
synced 2026-03-23 00:05:28 +08:00
switch to hybrid
This commit is contained in:
parent
25d4ad494c
commit
7482bde97a
29
root/etc/s6-overlay/s6-rc.d/init-mod-code-server-powershell-add-package/run
Executable file
29
root/etc/s6-overlay/s6-rc.d/init-mod-code-server-powershell-add-package/run
Executable file
@ -0,0 +1,29 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
ARCH=$(uname -m)
|
||||
source /etc/lsb-release
|
||||
|
||||
if [ -f "/powershell/powershell_${ARCH}.tar.gz" ]; then
|
||||
echo "Installing PowerShell"
|
||||
if [ "${DISTRIB_CODENAME}" == "bionic" ]; then
|
||||
echo "\
|
||||
libicu60 \
|
||||
libunwind8" >> /mod-repo-packages-to-install.list
|
||||
elif [ "${DISTRIB_CODENAME}" == "focal" ]; then
|
||||
echo "\
|
||||
libicu66 \
|
||||
libunwind8" >> /mod-repo-packages-to-install.list
|
||||
elif [ "${DISTRIB_CODENAME}" == "jammy" ]; then
|
||||
echo "\
|
||||
libicu70 \
|
||||
libunwind8" >> /mod-repo-packages-to-install.list
|
||||
fi
|
||||
tar xf "/powershell/powershell_${ARCH}.tar.gz" -C /powershell
|
||||
rm -rf \
|
||||
/powershell/powershell_x86_64.tar.gz \
|
||||
/powershell/powershell_armv7l.tar.gz \
|
||||
/powershell/powershell_aarch64.tar.gz
|
||||
ln -s /powershell/pwsh /usr/bin/pwsh
|
||||
else
|
||||
echo "PowerShell already installed, skipping"
|
||||
fi
|
||||
@ -0,0 +1 @@
|
||||
oneshot
|
||||
@ -0,0 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-mod-code-server-powershell-add-package/run
|
||||
Loading…
x
Reference in New Issue
Block a user