From d9d871d4491334a857d83605d88fcdb53b93099c Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Sat, 10 Jun 2023 22:10:03 +0200 Subject: [PATCH] nemon config added + bin update --- .nemo.json | 58 +++++++++++++++++++++++++++++++++++++++++++++++++ add_nemo_config | 12 ++++++++++ bin | 2 +- 3 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 .nemo.json create mode 100755 add_nemo_config diff --git a/.nemo.json b/.nemo.json new file mode 100644 index 0000000..23c204d --- /dev/null +++ b/.nemo.json @@ -0,0 +1,58 @@ +[ + { + "name": "scan@multimedia", + "prot": "ftp", + "user": "scan", + "remote_host": "multimedia", + "port": 21, + "remote_path": "/", + "password": "scan", + "local_path": "/usr/data/dirk/local/mnt/scan" + }, + { + "name": "dirk@multimedia:/", + "prot": "ssh", + "user": "dirk", + "remote_host": "multimedia", + "port": 22, + "remote_path": "/", + "local_path": "/usr/data/dirk/local/mnt/multimedia" + }, + { + "name": "root@mount-mockery.de:/", + "prot": "ssh", + "user": "root", + "remote_host": "mount-mockery.de", + "port": 22, + "remote_path": "/", + "local_path": "/usr/data/dirk/local/mnt/mount-mockery" + }, + { + "name": "dirk@OwnCloud", + "prot": "dav", + "user": "dirk", + "remote_host": "https://owncloud.mount-mockery.de/", + "port": 443, + "remote_path": "remote.php/dav/files/dirk", + "local_path": "/usr/data/dirk/local/mnt/owncloud" + }, + { + "name": "dirk@alders:/data", + "prot": "ssh", + "user": "dirk", + "remote_host": "alders", + "port": 22, + "remote_path": "/data", + "local_path": "/usr/data/dirk/local/mnt/alders" + }, + { + "name": "webmaster@autismus-ufr.de:/", + "prot": "ssh", + "user": "webmaster@autismus-ufr.de", + "remote_host": "ssh.strato.de", + "port": 22, + "remote_path": "/", + "local_path": "/usr/data/dirk/data/autismus-ufr.de/sftp" + } +] + diff --git a/add_nemo_config b/add_nemo_config new file mode 100755 index 0000000..0d22dc7 --- /dev/null +++ b/add_nemo_config @@ -0,0 +1,12 @@ +#!/bin/zsh +# +SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" + +if [[ (-e ~/.nemo.json) ]]; then + echo "A nemo configuration already exists (~/.nemo.json)" + echo "Remove this configuration and start the script again" +else + echo "Creating link" + ln -vs $SCRIPTPATH/.nemo.json ~/ +fi + diff --git a/bin b/bin index d0fa24b..2ee1207 160000 --- a/bin +++ b/bin @@ -1 +1 @@ -Subproject commit d0fa24b4036cfc0c5efa577b7532bf12cfb416ef +Subproject commit 2ee1207ad3e0d78bd7c6197670a350d8a1607e62