mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-12-17 00:51:46 +00:00
added post-setup notes to each ct...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
aa99e58f33
commit
ddb0480f46
22
.pct-helpers
22
.pct-helpers
@ -818,6 +818,28 @@ pctSetNotes(){
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# showNotes [VAR ...]
|
||||
#
|
||||
BUILD_NOTES=BUILD_NOTES
|
||||
showNotes(){
|
||||
[ -e "${BUILD_NOTES}" ] \
|
||||
&& mv "${BUILD_NOTES}"{,.bak}
|
||||
[ -e "${BUILD_NOTES}".tpl ] \
|
||||
&& cat "${BUILD_NOTES}".tpl \
|
||||
| expandPCTTemplate $@ \
|
||||
| tee "${BUILD_NOTES}"
|
||||
}
|
||||
|
||||
#
|
||||
# pushNotes ID
|
||||
#
|
||||
pushNotes(){
|
||||
[ -e "${BUILD_NOTES}" ] \
|
||||
&& @ pct-push-r $1 "${BUILD_NOTES}"
|
||||
}
|
||||
|
||||
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# vim:set ts=4 sw=4 nowrap :
|
||||
|
||||
@ -88,6 +88,7 @@ pctSetNotes $ID
|
||||
|
||||
saveLastRunConfig
|
||||
|
||||
showNotes
|
||||
echo "# Done."
|
||||
|
||||
|
||||
|
||||
@ -78,6 +78,7 @@ pctSetNotes $ID
|
||||
|
||||
saveLastRunConfig
|
||||
|
||||
showNotes
|
||||
echo "# Done."
|
||||
|
||||
|
||||
|
||||
@ -46,6 +46,8 @@ if xreadYes "# Update firewall rules?" FIREWALL ; then
|
||||
@ cp --backup -i templates/etc/pve/firewall/cluster.fw /etc/pve/firewall/
|
||||
fi
|
||||
|
||||
showNotes
|
||||
echo "# Done."
|
||||
|
||||
|
||||
|
||||
|
||||
@ -141,6 +141,7 @@ pctSetNotes $ID
|
||||
|
||||
saveLastRunConfig
|
||||
|
||||
showNotes
|
||||
echo "# Done."
|
||||
|
||||
|
||||
|
||||
@ -78,6 +78,7 @@ pctSetNotes $ID
|
||||
|
||||
saveLastRunConfig
|
||||
|
||||
showNotes
|
||||
echo "# Done."
|
||||
|
||||
|
||||
|
||||
@ -77,6 +77,7 @@ makeReserveCT $NS_ID $RESERVE_NS_ID $TEMPLATE_NS_ID
|
||||
|
||||
saveLastRunConfig
|
||||
|
||||
showNotes
|
||||
echo "# Done."
|
||||
|
||||
|
||||
|
||||
@ -89,6 +89,7 @@ pctSetNotes $ID
|
||||
|
||||
saveLastRunConfig
|
||||
|
||||
showNotes
|
||||
echo "# Done."
|
||||
|
||||
|
||||
|
||||
@ -87,6 +87,7 @@ pctSetNotes $ID
|
||||
|
||||
saveLastRunConfig
|
||||
|
||||
showNotes
|
||||
echo "# Done."
|
||||
|
||||
|
||||
|
||||
@ -105,6 +105,7 @@ pctSetNotes $ID
|
||||
|
||||
saveLastRunConfig
|
||||
|
||||
showNotes
|
||||
echo "# Done."
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user