added post-setup notes to each ct...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2024-01-26 03:06:55 +03:00
parent aa99e58f33
commit ddb0480f46
10 changed files with 32 additions and 0 deletions

View File

@ -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 :

View File

@ -88,6 +88,7 @@ pctSetNotes $ID
saveLastRunConfig
showNotes
echo "# Done."

View File

@ -78,6 +78,7 @@ pctSetNotes $ID
saveLastRunConfig
showNotes
echo "# Done."

View File

@ -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."

View File

@ -141,6 +141,7 @@ pctSetNotes $ID
saveLastRunConfig
showNotes
echo "# Done."

View File

@ -78,6 +78,7 @@ pctSetNotes $ID
saveLastRunConfig
showNotes
echo "# Done."

View File

@ -77,6 +77,7 @@ makeReserveCT $NS_ID $RESERVE_NS_ID $TEMPLATE_NS_ID
saveLastRunConfig
showNotes
echo "# Done."

View File

@ -89,6 +89,7 @@ pctSetNotes $ID
saveLastRunConfig
showNotes
echo "# Done."

View File

@ -87,6 +87,7 @@ pctSetNotes $ID
saveLastRunConfig
showNotes
echo "# Done."

View File

@ -105,6 +105,7 @@ pctSetNotes $ID
saveLastRunConfig
showNotes
echo "# Done."