From 0015c685080380bf95526ca4b88601882d75b7a3 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 7 Oct 2024 08:28:39 +0300 Subject: [PATCH] bootstrapping... Signed-off-by: Alex A. Naanou --- bootstrap.sh | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/bootstrap.sh b/bootstrap.sh index aa95744..a86b9fe 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,3 +1,41 @@ #!/usr/bin/bash +# XXX run self in nohup +# XXX TEST! + +# bootstrap... +#QUIET= +#DRY_RUN= +ECHO_PREFIX="### " +function @ (){ + if [ -z $DRY_RUN ] ; then + ! [ $QUIET ] \ + && echo -e "${ECHO_PREFIX}$@" + "$@" + else + echo -e $@ + fi + return $? +} + +# XXX test if running as root... + +apt update +apt upgrade + +# XXX +apt install \ + git make wget + +#git clone git@github.com:flynx/proxmox-utils.git +git clone https://github.com/flynx/proxmox-utils.git + +cd proxmox-utils + +source ./.pct-helpers + + +# XXX create bootstrap gate... +# XXX +