Automated update for script library changes
This commit is contained in:
Родитель
a00544521e
Коммит
0980788cfa
|
@ -100,7 +100,8 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
|
|||
locales \
|
||||
sudo \
|
||||
ncdu \
|
||||
man-db"
|
||||
man-db \
|
||||
strace"
|
||||
|
||||
# Install libssl1.1 if available
|
||||
if [[ ! -z $(apt-cache --names-only search ^libssl1.1$) ]]; then
|
||||
|
|
|
@ -100,7 +100,8 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
|
|||
locales \
|
||||
sudo \
|
||||
ncdu \
|
||||
man-db"
|
||||
man-db \
|
||||
strace"
|
||||
|
||||
# Install libssl1.1 if available
|
||||
if [[ ! -z $(apt-cache --names-only search ^libssl1.1$) ]]; then
|
||||
|
|
|
@ -93,7 +93,8 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
|
|||
grep \
|
||||
which \
|
||||
ncdu \
|
||||
shadow
|
||||
shadow \
|
||||
strace
|
||||
|
||||
# Install man pages - package name varies between 3.12 and earlier versions
|
||||
if apk info man > /dev/null 2>&1; then
|
||||
|
|
|
@ -100,7 +100,8 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
|
|||
locales \
|
||||
sudo \
|
||||
ncdu \
|
||||
man-db"
|
||||
man-db \
|
||||
strace"
|
||||
|
||||
# Install libssl1.1 if available
|
||||
if [[ ! -z $(apt-cache --names-only search ^libssl1.1$) ]]; then
|
||||
|
|
|
@ -100,7 +100,8 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
|
|||
locales \
|
||||
sudo \
|
||||
ncdu \
|
||||
man-db"
|
||||
man-db \
|
||||
strace"
|
||||
|
||||
# Install libssl1.1 if available
|
||||
if [[ ! -z $(apt-cache --names-only search ^libssl1.1$) ]]; then
|
||||
|
|
|
@ -100,7 +100,8 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
|
|||
locales \
|
||||
sudo \
|
||||
ncdu \
|
||||
man-db"
|
||||
man-db \
|
||||
strace"
|
||||
|
||||
# Install libssl1.1 if available
|
||||
if [[ ! -z $(apt-cache --names-only search ^libssl1.1$) ]]; then
|
||||
|
|
|
@ -100,7 +100,8 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
|
|||
locales \
|
||||
sudo \
|
||||
ncdu \
|
||||
man-db"
|
||||
man-db \
|
||||
strace"
|
||||
|
||||
# Install libssl1.1 if available
|
||||
if [[ ! -z $(apt-cache --names-only search ^libssl1.1$) ]]; then
|
||||
|
|
26
containers/azure-static-web-apps/.devcontainer/library-scripts/node-debian.sh
Normal file → Executable file
26
containers/azure-static-web-apps/.devcontainer/library-scripts/node-debian.sh
Normal file → Executable file
|
@ -3,23 +3,37 @@
|
|||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
|
||||
#-------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Syntax: ./node-debian.sh [directory to install nvm] [node version to install (use "none" to skip)] [non-root user]
|
||||
#
|
||||
# Docs: https://github.com/microsoft/vscode-dev-containers/blob/master/script-library/docs/node.md
|
||||
#
|
||||
# Syntax: ./node-debian.sh [directory to install nvm] [node version to install (use "none" to skip)] [non-root user] [Update rc files flag]
|
||||
|
||||
export NVM_DIR=${1:-"/usr/local/share/nvm"}
|
||||
export NODE_VERSION=${2:-"lts/*"}
|
||||
USERNAME=${3:-"vscode"}
|
||||
USERNAME=${3:-"automatic"}
|
||||
UPDATE_RC=${4:-"true"}
|
||||
|
||||
set -e
|
||||
|
||||
if [ "$(id -u)" -ne 0 ]; then
|
||||
echo -e 'Script must be run a root. Use sudo, su, or add "USER root" to your Dockerfile before running this script.'
|
||||
echo -e 'Script must be run as root. Use sudo, su, or add "USER root" to your Dockerfile before running this script.'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Treat a user name of "none" or non-existant user as root
|
||||
if [ "${USERNAME}" = "none" ] || ! id -u ${USERNAME} > /dev/null 2>&1; then
|
||||
# Determine the appropriate non-root user
|
||||
if [ "${USERNAME}" = "auto" ] || [ "${USERNAME}" = "automatic" ]; then
|
||||
USERNAME=""
|
||||
POSSIBLE_USERS=("vscode" "node" "codespace" "$(awk -v val=1000 -F ":" '$3==val{print $1}' /etc/passwd)")
|
||||
for CURRENT_USER in ${POSSIBLE_USERS[@]}; do
|
||||
if id -u ${CURRENT_USER} > /dev/null 2>&1; then
|
||||
USERNAME=${CURRENT_USER}
|
||||
break
|
||||
fi
|
||||
done
|
||||
if [ "${USERNAME}" = "" ]; then
|
||||
USERNAME=root
|
||||
fi
|
||||
elif [ "${USERNAME}" = "none" ] || ! id -u ${USERNAME} > /dev/null 2>&1; then
|
||||
USERNAME=root
|
||||
fi
|
||||
|
||||
|
|
|
@ -100,7 +100,8 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
|
|||
locales \
|
||||
sudo \
|
||||
ncdu \
|
||||
man-db"
|
||||
man-db \
|
||||
strace"
|
||||
|
||||
# Install libssl1.1 if available
|
||||
if [[ ! -z $(apt-cache --names-only search ^libssl1.1$) ]]; then
|
||||
|
|
|
@ -100,7 +100,8 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
|
|||
locales \
|
||||
sudo \
|
||||
ncdu \
|
||||
man-db"
|
||||
man-db \
|
||||
strace"
|
||||
|
||||
# Install libssl1.1 if available
|
||||
if [[ ! -z $(apt-cache --names-only search ^libssl1.1$) ]]; then
|
||||
|
|
|
@ -100,7 +100,8 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
|
|||
locales \
|
||||
sudo \
|
||||
ncdu \
|
||||
man-db"
|
||||
man-db \
|
||||
strace"
|
||||
|
||||
# Install libssl1.1 if available
|
||||
if [[ ! -z $(apt-cache --names-only search ^libssl1.1$) ]]; then
|
||||
|
|
|
@ -100,7 +100,8 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
|
|||
locales \
|
||||
sudo \
|
||||
ncdu \
|
||||
man-db"
|
||||
man-db \
|
||||
strace"
|
||||
|
||||
# Install libssl1.1 if available
|
||||
if [[ ! -z $(apt-cache --names-only search ^libssl1.1$) ]]; then
|
||||
|
|
|
@ -100,7 +100,8 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
|
|||
locales \
|
||||
sudo \
|
||||
ncdu \
|
||||
man-db"
|
||||
man-db \
|
||||
strace"
|
||||
|
||||
# Install libssl1.1 if available
|
||||
if [[ ! -z $(apt-cache --names-only search ^libssl1.1$) ]]; then
|
||||
|
|
|
@ -100,7 +100,8 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
|
|||
locales \
|
||||
sudo \
|
||||
ncdu \
|
||||
man-db"
|
||||
man-db \
|
||||
strace"
|
||||
|
||||
# Install libssl1.1 if available
|
||||
if [[ ! -z $(apt-cache --names-only search ^libssl1.1$) ]]; then
|
||||
|
|
|
@ -100,7 +100,8 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
|
|||
locales \
|
||||
sudo \
|
||||
ncdu \
|
||||
man-db"
|
||||
man-db \
|
||||
strace"
|
||||
|
||||
# Install libssl1.1 if available
|
||||
if [[ ! -z $(apt-cache --names-only search ^libssl1.1$) ]]; then
|
||||
|
|
|
@ -100,7 +100,8 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
|
|||
locales \
|
||||
sudo \
|
||||
ncdu \
|
||||
man-db"
|
||||
man-db \
|
||||
strace"
|
||||
|
||||
# Install libssl1.1 if available
|
||||
if [[ ! -z $(apt-cache --names-only search ^libssl1.1$) ]]; then
|
||||
|
|
|
@ -100,7 +100,8 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
|
|||
locales \
|
||||
sudo \
|
||||
ncdu \
|
||||
man-db"
|
||||
man-db \
|
||||
strace"
|
||||
|
||||
# Install libssl1.1 if available
|
||||
if [[ ! -z $(apt-cache --names-only search ^libssl1.1$) ]]; then
|
||||
|
|
|
@ -100,7 +100,8 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
|
|||
locales \
|
||||
sudo \
|
||||
ncdu \
|
||||
man-db"
|
||||
man-db \
|
||||
strace"
|
||||
|
||||
# Install libssl1.1 if available
|
||||
if [[ ! -z $(apt-cache --names-only search ^libssl1.1$) ]]; then
|
||||
|
|
|
@ -100,7 +100,8 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
|
|||
locales \
|
||||
sudo \
|
||||
ncdu \
|
||||
man-db"
|
||||
man-db \
|
||||
strace"
|
||||
|
||||
# Install libssl1.1 if available
|
||||
if [[ ! -z $(apt-cache --names-only search ^libssl1.1$) ]]; then
|
||||
|
|
|
@ -100,7 +100,8 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
|
|||
locales \
|
||||
sudo \
|
||||
ncdu \
|
||||
man-db"
|
||||
man-db \
|
||||
strace"
|
||||
|
||||
# Install libssl1.1 if available
|
||||
if [[ ! -z $(apt-cache --names-only search ^libssl1.1$) ]]; then
|
||||
|
|
|
@ -100,7 +100,8 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
|
|||
locales \
|
||||
sudo \
|
||||
ncdu \
|
||||
man-db"
|
||||
man-db \
|
||||
strace"
|
||||
|
||||
# Install libssl1.1 if available
|
||||
if [[ ! -z $(apt-cache --names-only search ^libssl1.1$) ]]; then
|
||||
|
|
|
@ -100,7 +100,8 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
|
|||
locales \
|
||||
sudo \
|
||||
ncdu \
|
||||
man-db"
|
||||
man-db \
|
||||
strace"
|
||||
|
||||
# Install libssl1.1 if available
|
||||
if [[ ! -z $(apt-cache --names-only search ^libssl1.1$) ]]; then
|
||||
|
|
|
@ -100,7 +100,8 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
|
|||
locales \
|
||||
sudo \
|
||||
ncdu \
|
||||
man-db"
|
||||
man-db \
|
||||
strace"
|
||||
|
||||
# Install libssl1.1 if available
|
||||
if [[ ! -z $(apt-cache --names-only search ^libssl1.1$) ]]; then
|
||||
|
|
|
@ -100,7 +100,8 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
|
|||
locales \
|
||||
sudo \
|
||||
ncdu \
|
||||
man-db"
|
||||
man-db \
|
||||
strace"
|
||||
|
||||
# Install libssl1.1 if available
|
||||
if [[ ! -z $(apt-cache --names-only search ^libssl1.1$) ]]; then
|
||||
|
|
|
@ -100,7 +100,8 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
|
|||
locales \
|
||||
sudo \
|
||||
ncdu \
|
||||
man-db"
|
||||
man-db \
|
||||
strace"
|
||||
|
||||
# Install libssl1.1 if available
|
||||
if [[ ! -z $(apt-cache --names-only search ^libssl1.1$) ]]; then
|
||||
|
|
|
@ -100,7 +100,8 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
|
|||
locales \
|
||||
sudo \
|
||||
ncdu \
|
||||
man-db"
|
||||
man-db \
|
||||
strace"
|
||||
|
||||
# Install libssl1.1 if available
|
||||
if [[ ! -z $(apt-cache --names-only search ^libssl1.1$) ]]; then
|
||||
|
|
|
@ -100,7 +100,8 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
|
|||
locales \
|
||||
sudo \
|
||||
ncdu \
|
||||
man-db"
|
||||
man-db \
|
||||
strace"
|
||||
|
||||
# Install libssl1.1 if available
|
||||
if [[ ! -z $(apt-cache --names-only search ^libssl1.1$) ]]; then
|
||||
|
|
|
@ -100,7 +100,8 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
|
|||
locales \
|
||||
sudo \
|
||||
ncdu \
|
||||
man-db"
|
||||
man-db \
|
||||
strace"
|
||||
|
||||
# Install libssl1.1 if available
|
||||
if [[ ! -z $(apt-cache --names-only search ^libssl1.1$) ]]; then
|
||||
|
|
|
@ -100,7 +100,8 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
|
|||
locales \
|
||||
sudo \
|
||||
ncdu \
|
||||
man-db"
|
||||
man-db \
|
||||
strace"
|
||||
|
||||
# Install libssl1.1 if available
|
||||
if [[ ! -z $(apt-cache --names-only search ^libssl1.1$) ]]; then
|
||||
|
|
|
@ -100,7 +100,8 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
|
|||
locales \
|
||||
sudo \
|
||||
ncdu \
|
||||
man-db"
|
||||
man-db \
|
||||
strace"
|
||||
|
||||
# Install libssl1.1 if available
|
||||
if [[ ! -z $(apt-cache --names-only search ^libssl1.1$) ]]; then
|
||||
|
|
Загрузка…
Ссылка в новой задаче