master
David Kebler 2023-12-14 21:31:40 -08:00
parent 902a73081d
commit c45418d313
6 changed files with 12 additions and 14 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/archive/
/ssh-del/

View File

@ -1,8 +0,0 @@
publicip () {
dig +short myip.opendns.com @resolver1.opendns.com
}
getip () {
dig +short $1 | tail -1
}

View File

@ -5,8 +5,8 @@
# must! be run as sudo
install_shell_base () {
# TODO have a cross distro package install
[[ ! $(which git) ]] && apt-get install --no-install-recommends git -y
[[ ! $EUID -eq 0 ]] && { echo ERROR script must be run as root; return; }
[[ ! $(which git) ]] && echo git must be installed first && return 1
[[ ! $EUID -eq 0 ]] && { echo ERROR script must be run as root; return 2; }
mkdir -p /shell/base
git clone https://git.kebler.net/bash/shell-base.git /shell/base
chown -R ${1:-$1000}:${1:-1000} /shell

View File

@ -110,3 +110,12 @@ rm $file
# # if script was executed then call the function
(return 0 2>/dev/null) ||remote_script $@
# sudo rsync --exclude *[C]ache* -e '/usr/bin/ssh -F /home/david/.ssh/_config' --progress -aAru /opt/chromium seldon:/opt
remote_copy () {
sudo rsync --exclude *[C]ache* -e '/usr/bin/ssh -F /home/david/.ssh/_config' --progress -aAru /opt/chromium seldon:/opt
}

1
ssh/.gitignore vendored
View File

@ -1 +0,0 @@
/_config

View File

@ -1,3 +0,0 @@
all files in this ssh/config subdirectory will be incorporated into a master ssh configuration per the ssh_config function in the ssh module