change variable-name and login

This commit is contained in:
Jakobus Schürz 2022-10-21 10:49:35 +02:00
parent ebe4f43c17
commit 67b1c1bdaf

View file

@ -84,7 +84,7 @@ create_symlinks() {
ln -sf "${MSC_BASE}/tmux/tmux.conf" ~/.tmux.conf ln -sf "${MSC_BASE}/tmux/tmux.conf" ~/.tmux.conf
# Configure to use githooks in .githooks, not in standardlocation .git/hooks # Configure to use githooks in .githooks, not in standardlocation .git/hooks
$SGIT config core.hooksPath .githooks $MSC_GIT config core.hooksPath .githooks
# remove all old symlinks in .githooks and relink files from .githooks to .git/hooks # remove all old symlinks in .githooks and relink files from .githooks to .git/hooks
# don't know, why i do it here. TODO: Check it # don't know, why i do it here. TODO: Check it
find .git/hooks -type l -exec rm {} \; && find .githooks -type f -exec ln -sf ../../{} .git/hooks/ \; find .git/hooks -type l -exec rm {} \; && find .githooks -type f -exec ln -sf ../../{} .git/hooks/ \;
@ -669,7 +669,7 @@ function checkbkp() {
ENTRY ENTRY
if ping -c 3 backup.vpn >/dev/null 2>&1 ; then if ping -c 3 backup.vpn >/dev/null 2>&1 ; then
local SSH="/usr/bin/ssh" local SSH="/usr/bin/ssh"
local CMD="$SSH -T backup.vpn" local CMD="$SSH -T root@backup.vpn"
$CMD /bin/bash << EOF $CMD /bin/bash << EOF
sudo find /srv/nfs/backup -mindepth 1 -maxdepth 1|grep -v -e "git$\|git-backup-repos"|while read i;do printf "%-30s%s\\n" "\$i" \$(ls \$i|tail -n1);done|sort -k 2.1 -r sudo find /srv/nfs/backup -mindepth 1 -maxdepth 1|grep -v -e "git$\|git-backup-repos"|while read i;do printf "%-30s%s\\n" "\$i" \$(ls \$i|tail -n1);done|sort -k 2.1 -r
EOF EOF
@ -684,7 +684,7 @@ function checkbkp-full() {
ENTRY ENTRY
if ping -c 3 backup.vpn >/dev/null 2>&1 ; then if ping -c 3 backup.vpn >/dev/null 2>&1 ; then
local SSH="/usr/bin/ssh" local SSH="/usr/bin/ssh"
local CMD="$SSH -T backup.vpn" local CMD="$SSH -T root@backup.vpn"
$CMD /bin/bash << EOF $CMD /bin/bash << EOF
sudo find /srv/nfs/backup -mindepth 1 -maxdepth 1|grep -v -e "git$\|git-backup-repos"|while read i;do printf "%-30s%s\\n" "\$i" \$(ls \$i|tail -n1);done|sort -k 2.1 -r sudo find /srv/nfs/backup -mindepth 1 -maxdepth 1|grep -v -e "git$\|git-backup-repos"|while read i;do printf "%-30s%s\\n" "\$i" \$(ls \$i|tail -n1);done|sort -k 2.1 -r
EOF EOF