mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-12-26 13:22:03 +00:00
Compare commits
No commits in common. "3b29199f9cff48a9e2710dd4752d29e69ee78728" and "b4fa9f4aeeadf151e2f481487f34b7dd859ff8f0" have entirely different histories.
3b29199f9c
...
b4fa9f4aee
43
bootstrap.sh
43
bootstrap.sh
@ -4,19 +4,46 @@
|
|||||||
#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...
|
|
||||||
apt install \
|
# XXX run self in nohup
|
||||||
|
# ..."$ make host" will likely break existing connections...
|
||||||
|
# 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...
|
||||||
|
# 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
|
||||||
|
|
||||||
make bootstrap
|
source ./.pct-helpers
|
||||||
|
|
||||||
|
|
||||||
|
# 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