mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-10-29 03:00:09 +00:00
oops, seem to have overcomplicated things a bit...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
4398d321ca
commit
3b29199f9c
45
bootstrap.sh
45
bootstrap.sh
@ -4,48 +4,19 @@
|
|||||||
#PROXMOX_UTILS=git@github.com:flynx/proxmox-utils.git
|
#PROXMOX_UTILS=git@github.com:flynx/proxmox-utils.git
|
||||||
PROXMOX_UTILS=${PROXMOX_UTILS:-https://github.com/flynx/proxmox-utils.git}
|
PROXMOX_UTILS=${PROXMOX_UTILS:-https://github.com/flynx/proxmox-utils.git}
|
||||||
|
|
||||||
|
# XXX do we need to update the system here?
|
||||||
|
apt update
|
||||||
|
apt upgrade
|
||||||
|
|
||||||
|
# keep this to the minimum...
|
||||||
# XXX run self in nohup
|
apt install \
|
||||||
# ..."$ make host" will likely break existing connections...
|
|
||||||
# XXX TEST!
|
|
||||||
|
|
||||||
# bootstrap...
|
|
||||||
# XXX might be a better idea to bootstrap the bootstrap by dowloading
|
|
||||||
# the .pct-helpers...
|
|
||||||
#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...
|
|
||||||
# XXX
|
|
||||||
|
|
||||||
@ apt update
|
|
||||||
@ apt upgrade
|
|
||||||
|
|
||||||
# XXX
|
|
||||||
@ apt install \
|
|
||||||
git make wget
|
git make wget
|
||||||
|
|
||||||
@ git clone $PROXMOX_UTILS
|
git clone $PROXMOX_UTILS
|
||||||
|
|
||||||
@ cd proxmox-utils
|
cd proxmox-utils
|
||||||
|
|
||||||
source ./.pct-helpers
|
make bootstrap
|
||||||
|
|
||||||
|
|
||||||
# XXX create bootstrap gate...
|
|
||||||
# XXX
|
|
||||||
|
|
||||||
|
|
||||||
# vim:set ts=4 sw=4 nowrap :
|
# vim:set ts=4 sw=4 nowrap :
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user