1
0
Fork 0

add lxclaunch

This commit is contained in:
VirtuBox 2019-09-23 17:25:09 +02:00
parent 991dca63e3
commit 5ddda0a092
Signed by: virtubox
GPG Key ID: 22EB296C97BAD476
1 changed files with 11 additions and 0 deletions

View File

@ -544,6 +544,16 @@ _LXC_LOGIN() {
lxc exec "$@" /usr/bin/env bash
}
_LXC_LAUNCH() {
local RANDOM
RANDOM=$(date +%s | sha256sum | base64 | head -c 4)
if [ "$#" = "0" ]; then
lxc launch ubuntu-daily:18.04 "ctn-$RANDOM"
else
lxc launch ubuntu-daily:18.04 "$1"
fi
}
# enable color support of ls and also add handy aliases
# some more ls aliases
#alias wp='/usr/bin/wp --allow-root'
@ -585,6 +595,7 @@ alias lh="stat -c '%A %a %n' ./*"
alias ll='ls -alhF'
alias ls='ls --color=auto'
alias lxclogin=_LXC_LOGIN
alias lxclaunch=_LXC_LAUNCH
alias magento-upgrade=MAGENTO_UPGRADE
alias maintenance=MAINTENANCE_APT
alias nano='nano -E'