Add pve scripts local
This commit is contained in:
parent
6744970684
commit
f907b0be46
@ -17,26 +17,13 @@ msg_info "Installing Dependencies"
|
|||||||
$STD apt-get update
|
$STD apt-get update
|
||||||
$STD apt-get install -y \
|
$STD apt-get install -y \
|
||||||
build-essential \
|
build-essential \
|
||||||
git \
|
|
||||||
sshpass \
|
sshpass \
|
||||||
expect
|
expect
|
||||||
msg_ok "Dependencies installed."
|
msg_ok "Dependencies installed."
|
||||||
|
|
||||||
NODE_VERSION=22 setup_nodejs
|
NODE_VERSION=22 setup_nodejs
|
||||||
|
|
||||||
INSTALL_DIR=${INSTALL_DIR:-/opt/PVESciptslocal}
|
fetch_and_deploy_gh_release "ProxmoxVE-Local" "community-scripts/ProxmoxVE-Local"
|
||||||
|
|
||||||
if [ ! -d "$INSTALL_DIR/.git" ]; then
|
|
||||||
msg_info "Cloning repository into $INSTALL_DIR..."
|
|
||||||
$STD git clone https://github.com/michelroegl-brunner/PVESciptslocal.git "$INSTALL_DIR"
|
|
||||||
msg_ok "Repository cloned."
|
|
||||||
else
|
|
||||||
msg_info "Directory already exists. Pulling latest changes..."
|
|
||||||
$STD git -C "$INSTALL_DIR" pull
|
|
||||||
msg_ok "Repository updated."
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd "$INSTALL_DIR"
|
|
||||||
|
|
||||||
msg_info "Installing PVE Scripts local"
|
msg_info "Installing PVE Scripts local"
|
||||||
$STD npm install
|
$STD npm install
|
||||||
|
Loading…
x
Reference in New Issue
Block a user