mirror of
https://github.com/ej52/proxmox-scripts.git
synced 2025-07-22 23:48:06 +02:00
fix: #12 - fix _storage_template assignment
This commit is contained in:
parent
0dfcaf082a
commit
e26c5e599a
@ -75,8 +75,8 @@ while [[ $# -gt 0 ]]; do
|
|||||||
_storage=$2
|
_storage=$2
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--storage-template)
|
--templates)
|
||||||
__storage_template=$2
|
_storage_template=$2
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--swap)
|
--swap)
|
||||||
@ -99,7 +99,7 @@ _bridge=${_bridge:-vmbr0}
|
|||||||
_memory=${_memory:-512}
|
_memory=${_memory:-512}
|
||||||
_swap=${_swap:-0}
|
_swap=${_swap:-0}
|
||||||
_storage=${_storage:-local-lvm}
|
_storage=${_storage:-local-lvm}
|
||||||
_storage_template=${__storage_template:-local}
|
_storage_template=${_storage_template:-local}
|
||||||
|
|
||||||
# Test if ID is in use
|
# Test if ID is in use
|
||||||
if pct status $_ctid &>/dev/null; then
|
if pct status $_ctid &>/dev/null; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user