Small fixes (#9836)

This commit is contained in:
Slaviša Arežina
2025-12-10 21:37:36 +01:00
committed by GitHub
parent fb5fc0524b
commit 6352694326
2 changed files with 2 additions and 7 deletions

View File

@ -30,7 +30,7 @@ function update_script() {
msg_info "Updating LXC Container"
$STD apt update
$STD apt -y upgrade
$STD apt upgrade -y
msg_ok "Updated LXC Container"
NODE_VERSION="22" NODE_MODULE="verdaccio" setup_nodejs

View File

@ -14,9 +14,7 @@ network_check
update_os
msg_info "Installing Dependencies"
$STD apt install -y \
ca-certificates \
build-essential
$STD apt install -y build-essential
msg_ok "Installed Dependencies"
NODE_VERSION="22" NODE_MODULE="verdaccio" setup_nodejs
@ -24,7 +22,6 @@ NODE_VERSION="22" NODE_MODULE="verdaccio" setup_nodejs
msg_info "Configuring Verdaccio"
mkdir -p /opt/verdaccio/config
mkdir -p /opt/verdaccio/storage
cat <<EOF >/opt/verdaccio/config/config.yaml
# Verdaccio configuration
storage: /opt/verdaccio/storage
@ -58,7 +55,6 @@ web:
sort_packages: asc
login: true
EOF
chown -R root:root /opt/verdaccio
chmod -R 755 /opt/verdaccio
msg_ok "Configured Verdaccio"
@ -81,7 +77,6 @@ KillMode=control-group
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now verdaccio
msg_ok "Created Service"