Compare commits

..

No commits in common. "6f16c5e710dcf17915392236d00b62edf3b04861" and "8e29301d9699c049ba26c2a587bb21a599c4942b" have entirely different histories.

3 changed files with 8 additions and 7 deletions

View File

@ -3,4 +3,6 @@ set -euo pipefail
source /sync/scripts/mount_general.sh
sshMount edi edi fabian FabisDokumente
user=$(whoami)
sshMount edi edi $user FabisDokumente

View File

@ -3,4 +3,6 @@ set -euo pipefail
source /sync/scripts/mount_general.sh
sshMount fabian garrus fabian FabisDokumente media Filme
user=$(whoami)
sshMount fabian garrus $user FabisDokumente media Filme

View File

@ -2,13 +2,10 @@
set -euo pipefail
sshMount () {
clientUser=$(whoami);
serverUser=$1;
serverHost=$2;
shift 2;
args=($@)
args=(${args[@]:2})
for ((i=0; i < ${#args[@]}; i=i + 2)); do
sshfs ${serverUser}@${serverHost}:/citadel/${args[$i]}/ /home/${clientUser}/${args[$i + 1]}/ -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=8
sshfs $1@$2:/citadel/${args[$i]}/ /home/fabian/${args[$i + 1]}/ -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=8
done
}