diff --git a/.gitignore b/.gitignore index 4490a31..5ed7b58 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /archive/ +/ssh-del/ diff --git a/function/net-utils.sh b/function/net-utils.sh deleted file mode 100644 index 88d1c79..0000000 --- a/function/net-utils.sh +++ /dev/null @@ -1,8 +0,0 @@ - -publicip () { -dig +short myip.opendns.com @resolver1.opendns.com -} - -getip () { -dig +short $1 | tail -1 -} \ No newline at end of file diff --git a/modules/install-shell-base.lib b/modules/install-shell-base.lib index 3bff94e..3bf631f 100644 --- a/modules/install-shell-base.lib +++ b/modules/install-shell-base.lib @@ -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 diff --git a/modules/remote.mod b/modules/remote.mod index 80d8a17..146ac22 100644 --- a/modules/remote.mod +++ b/modules/remote.mod @@ -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 + +} \ No newline at end of file diff --git a/ssh/.gitignore b/ssh/.gitignore deleted file mode 100644 index b3483f8..0000000 --- a/ssh/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/_config diff --git a/ssh/config/readme.md b/ssh/config/readme.md deleted file mode 100644 index 689e50b..0000000 --- a/ssh/config/readme.md +++ /dev/null @@ -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 -