cleanup
parent
902a73081d
commit
c45418d313
|
@ -1 +1,2 @@
|
||||||
/archive/
|
/archive/
|
||||||
|
/ssh-del/
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
|
|
||||||
publicip () {
|
|
||||||
dig +short myip.opendns.com @resolver1.opendns.com
|
|
||||||
}
|
|
||||||
|
|
||||||
getip () {
|
|
||||||
dig +short $1 | tail -1
|
|
||||||
}
|
|
|
@ -5,8 +5,8 @@
|
||||||
# must! be run as sudo
|
# must! be run as sudo
|
||||||
install_shell_base () {
|
install_shell_base () {
|
||||||
# TODO have a cross distro package install
|
# TODO have a cross distro package install
|
||||||
[[ ! $(which git) ]] && apt-get install --no-install-recommends git -y
|
[[ ! $(which git) ]] && echo git must be installed first && return 1
|
||||||
[[ ! $EUID -eq 0 ]] && { echo ERROR script must be run as root; return; }
|
[[ ! $EUID -eq 0 ]] && { echo ERROR script must be run as root; return 2; }
|
||||||
mkdir -p /shell/base
|
mkdir -p /shell/base
|
||||||
git clone https://git.kebler.net/bash/shell-base.git /shell/base
|
git clone https://git.kebler.net/bash/shell-base.git /shell/base
|
||||||
chown -R ${1:-$1000}:${1:-1000} /shell
|
chown -R ${1:-$1000}:${1:-1000} /shell
|
||||||
|
|
|
@ -110,3 +110,12 @@ rm $file
|
||||||
# # if script was executed then call the function
|
# # if script was executed then call the function
|
||||||
(return 0 2>/dev/null) ||remote_script $@
|
(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 +0,0 @@
|
||||||
/_config
|
|
|
@ -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
|
|
||||||
|
|
Loading…
Reference in New Issue