Skip to content

Commit

Permalink
add a bridge variable
Browse files Browse the repository at this point in the history
  • Loading branch information
53845714nF committed Jul 25, 2024
1 parent a50c7eb commit 4374bb0
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 2 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v1.2.3
hooks:
- id: trailing-whitespace
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.39.0
hooks:
- id: markdownlint
- repo: https://github.com/shellcheck-py/shellcheck-py
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.6
hooks:
- id: shellcheck
3 changes: 2 additions & 1 deletion vuln2pve
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@
dns=local # like fritz.box
storage=vm_pool # default is local-lvm
images_dir=/var/lib/vz/images # default pve dir
bridge=vmbr0 # set your bridge default is vmbr0

# Color Codes
NORMAL="\e[39m"
@@ -106,7 +107,7 @@ echo -e "$GREEN Removing done! $NORMAL\n"
echo -e "$BLUE Create VM. $NORMAL\n"
name=$(find "$images_dir"/"$vm_id"/ -name '*.qcow2' | head -n 1 | rev | cut -d "/" -f 1 | rev | cut -d "." -f 1 | cut -d "-" -f 1 | tr '[:upper:]' '[:lower:]'| tr -d '_')
qm create "$vm_id" \
--net0 e1000,bridge=vmbr0 \
--net0 e1000,bridge="$bridge" \
--acpi yes \
--cores 2 \
--keyboard de \

0 comments on commit 4374bb0

Please sign in to comment.