mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-02 11:03:56 +01:00
Update debian-v3.sh
This commit is contained in:
parent
66ffaf1aa9
commit
cfa2ab2bda
@ -7,6 +7,8 @@ RD=`echo "\033[01;31m"`
|
|||||||
BGN=`echo "\033[4;92m"`
|
BGN=`echo "\033[4;92m"`
|
||||||
GN=`echo "\033[32m"`
|
GN=`echo "\033[32m"`
|
||||||
CL=`echo "\033[m"`
|
CL=`echo "\033[m"`
|
||||||
|
BFR="\\r\\033[K"
|
||||||
|
HOLD="[-]"
|
||||||
CM="${GN}✓${CL}"
|
CM="${GN}✓${CL}"
|
||||||
APP="Debian"
|
APP="Debian"
|
||||||
NSAPP=$(echo ${APP,,} | tr -d ' ')
|
NSAPP=$(echo ${APP,,} | tr -d ' ')
|
||||||
@ -32,6 +34,16 @@ ${CL}"
|
|||||||
|
|
||||||
header_info
|
header_info
|
||||||
|
|
||||||
|
msg_info() {
|
||||||
|
local msg="$1"
|
||||||
|
echo -ne " ${HOLD} ${YW}${msg}..."
|
||||||
|
}
|
||||||
|
|
||||||
|
msg_ok() {
|
||||||
|
local msg="$1"
|
||||||
|
echo -e "${BFR} ${CM} ${GN}${msg}${CL}"
|
||||||
|
}
|
||||||
|
|
||||||
function PVE_CHECK() {
|
function PVE_CHECK() {
|
||||||
PVE=$(pveversion | grep "pve-manager/7" | wc -l)
|
PVE=$(pveversion | grep "pve-manager/7" | wc -l)
|
||||||
|
|
||||||
@ -318,9 +330,9 @@ if [ "$STORAGE_TYPE" == "zfspool" ]; then
|
|||||||
warn "Some applications may not work properly due to ZFS not supporting 'fallocate'."
|
warn "Some applications may not work properly due to ZFS not supporting 'fallocate'."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -en "${GN} Starting LXC Container... "
|
msg_info "Starting LXC Container"
|
||||||
pct start $CTID
|
pct start $CTID
|
||||||
echo -e "${CM}${CL} \r"
|
msg_ok "Starting LXC Container"
|
||||||
|
|
||||||
alias lxc-cmd="lxc-attach -n $CTID --"
|
alias lxc-cmd="lxc-attach -n $CTID --"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user