mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-10-29 19:20:10 +00:00
wprking on per-ct config...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
e25718b3d7
commit
5393b8dd4b
22
.pct-helpers
22
.pct-helpers
@ -390,6 +390,28 @@ reviewApplyChanges(){
|
|||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
|
||||||
|
#
|
||||||
|
# readCTConfig
|
||||||
|
#
|
||||||
|
# XXX list or load a specific CT config...
|
||||||
|
readCTConfig(){
|
||||||
|
if [ -z $ID ] && ! [ -z $CTHOSTNAME ] ; then
|
||||||
|
# XXX select by id...
|
||||||
|
true
|
||||||
|
elif ! [ -z $ID ] && [ -z $CTHOSTNAME ] ; then
|
||||||
|
# XXX select by hostname...
|
||||||
|
true
|
||||||
|
else
|
||||||
|
# XXX list all...
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
local ct_cfg=$ID-$CTHOSTNAME.cfg
|
||||||
|
if [ -e $ct_cfg ] ; then
|
||||||
|
source "$ct_cfg"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# readConfig
|
# readConfig
|
||||||
#
|
#
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user