config/bash: move pve aliases
This commit is contained in:
parent
886b3b9172
commit
2437dce296
|
@ -1,7 +1,7 @@
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
alias localip="ip addr show | grep -E '(ens|eth)' | grep -oP '"'(?<=inet\s)\d+(\.\d+){3}'"' | head -1"
|
alias localip="ip addr show | grep -E '(ens|eth)' | grep -oP '"'(?<=inet\s)\d+(\.\d+){3}'"' | head -1"
|
||||||
ip=$(localip)
|
ip=`localip`
|
||||||
|
|
||||||
logs() {
|
logs() {
|
||||||
if test $# -eq 0
|
if test $# -eq 0
|
||||||
|
@ -64,6 +64,7 @@ letsencrypt() {
|
||||||
hestia v-list-web-domain-ssl $user $domain | grep . >/dev/null && continue
|
hestia v-list-web-domain-ssl $user $domain | grep . >/dev/null && continue
|
||||||
#echo "Generating Certificate" >&2
|
#echo "Generating Certificate" >&2
|
||||||
hestia v-add-letsencrypt-domain $user $domain $(hestia v-list-web-domain $user $domain | grep ALIAS | tr -s ' ' | cut -d' ' -f2- | tr ' ' ',')
|
hestia v-add-letsencrypt-domain $user $domain $(hestia v-list-web-domain $user $domain | grep ALIAS | tr -s ' ' | cut -d' ' -f2- | tr ' ' ',')
|
||||||
|
echo "$domain: ${?}"
|
||||||
done
|
done
|
||||||
echo "Waiting an hour to not trigger letsencrypt rate limits..."
|
echo "Waiting an hour to not trigger letsencrypt rate limits..."
|
||||||
time=0
|
time=0
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
|
||||||
|
[[ $- == *i* ]] && zfs list -d 0
|
||||||
|
|
||||||
|
alias cluster='scr corosync && scr pvesr'
|
||||||
|
qcow() { qemu-img convert $1 -O qcow2 ${2:-$1}.qcow2; }
|
||||||
|
extrac() {
|
||||||
|
for var; do
|
||||||
|
arg=${var%.lzo}
|
||||||
|
out=$(basename ${arg%.vma})
|
||||||
|
lzop -x $arg.lzo
|
||||||
|
vma.py $arg $out || vma.py $(basename $arg) $out && (
|
||||||
|
cd $out && find drive-* -exec qemu-img convert {} -O qcow2 $out-{}.qcow2 \;
|
||||||
|
)
|
||||||
|
#vma extract $arg $out &&
|
||||||
|
#( cd $out && find *.raw -exec qemu-img convert {} -O qcow2 $arg-{}.qcow2 \; )
|
||||||
|
done
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
../shell/server
|
|
@ -1,14 +0,0 @@
|
||||||
|
|
||||||
[[ $- == *i* ]] && zfs list -d 0
|
|
||||||
|
|
||||||
alias cluster='scr corosync && scr pvesr'
|
|
||||||
qcow() { qemu-img convert $1 -O qcow2 ${2:-$1}.qcow2; }
|
|
||||||
extrac() {
|
|
||||||
for var; do
|
|
||||||
arg=${var%.lzo}
|
|
||||||
out=$(basename ${arg%.vma})
|
|
||||||
lzop -x $arg.lzo
|
|
||||||
vma extract $arg $out &&
|
|
||||||
( cd $out && find *.raw -exec qemu-img convert {} -O qcow2 $arg-{}.qcow2 \; )
|
|
||||||
done
|
|
||||||
}
|
|
Loading…
Reference in New Issue