Merge branch 'master' of github.com:flynx/proxmox-utils

This commit is contained in:
Alex A. Naanou 2023-07-03 00:33:41 +03:00
commit 0d20421827

View File

@ -3,14 +3,34 @@
# #
#---------------------------------------------------------------------- #----------------------------------------------------------------------
source ./.pct-helpers
# config... # config...
CT_DIR=/etc/pve/lxc/ CT_DIR=/etc/pve/lxc/
SHARE_ROOT=/media/shared/ SHARE_ROOT=/media/shared/
#----------------------------------------------------------------------
source ./.pct-helpers
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case $1 in
-h|--help)
echo "Create a clone and optionally a replate from a CT with directory mounts"
echo
echo "Usage:"
echo " `basename $0` SOURCE_ID CLONE_ID [TEMPLATE_ID]"
echo
exit
;;
-*)
echo "Unknown option: $1"
exit
;;
esac
# XXX better argument handling / help... # XXX better argument handling / help...
id=$1 id=$1
to=$2 to=$2