mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-25 23:35:54 +00:00
Refactor Verdaccio install and update scripts
Updated both install and update scripts to use the setup_nodejs function with NODE_MODULE for Verdaccio installation and upgrade. Improved update process to include apt update/upgrade steps, and standardized apt cleanup commands in the install script.
This commit is contained in:
@@ -27,10 +27,13 @@ function update_script() {
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
fi
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
msg_info "Updating ${APP} LXC"
|
||||
$STD npm update -g verdaccio
|
||||
|
||||
msg_info "Updating LXC Container"
|
||||
$STD apt update
|
||||
$STD apt -y upgrade
|
||||
msg_ok "Updated LXC Container"
|
||||
|
||||
NODE_VERSION="22" NODE_MODULE="verdaccio" setup_nodejs
|
||||
systemctl restart verdaccio
|
||||
msg_ok "Updated Successfully"
|
||||
exit
|
||||
@@ -43,4 +46,4 @@ description
|
||||
msg_ok "Completed Successfully!\n"
|
||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:4873${CL}"
|
||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:4873${CL}"
|
||||
|
||||
Reference in New Issue
Block a user