mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-12-17 09:01:49 +00:00
working on basic template management...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
73da4ed12c
commit
d3f15fbffd
15
.pct-helpers
15
.pct-helpers
@ -141,6 +141,21 @@ normpath(){
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
#
|
||||
# getLatestTemplate PATTERN [VAR]
|
||||
#
|
||||
getLatestTemplate(){
|
||||
local pattern=$1
|
||||
local tamplates=($(pveam available | grep $1))
|
||||
local latest=${templates[-1]}
|
||||
|
||||
pvaem download local ${latest}
|
||||
|
||||
[ -z $2 ] \
|
||||
|| eval "$2=${latest}"
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# xread [-n] MSG VAR
|
||||
#
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user