Skip to content
Snippets Groups Projects
Commit 4d29fb45 authored by nimrod's avatar nimrod
Browse files

Rclone support for the library.shore.co.il.

Access to my media library.
parent dd6451c9
Branches
No related tags found
No related merge requests found
......@@ -223,6 +223,18 @@ match_ssl_pair () {
return "$exitcode"
}
mnt_lib () {
mkdir -p "$HOME/Library"
rclone mount \
--allow-non-empty \
--daemon \
--gid "$(id -g)" \
--vfs-cache-mode full \
--uid "$(id -u)" \
library:/ \
"$HOME/Library"
}
new_experiment () {
if [ "$#" -ne 1 ]
then
......
......@@ -6,3 +6,4 @@ export GITHUB_TOKEN='{{ run(["ph", "show", "--field", "CLI token", "Web Sites/Gi
export GITHUB_OAUTH_TOKEN="$GITHUB_TOKEN"
{% set nc_password = run(["ph", "show", "--field", "Password", "shore.co.il/LDAP"])["stdout"] -%}
export RCLONE_CONFIG_NEXTCLOUD_PASS='{{ run(["rclone", "obscure", nc_password])["stdout"]|trim }}'
export RCLONE_CONFIG_LIBRARY_PASS="$RCLONE_CONFIG_NEXTCLOUD_PASS"
......@@ -3,3 +3,9 @@ type = webdav
url = https://nextcloud.shore.co.il/remote.php/webdav/
vendor = nextcloud
user = nimrod
[library]
type = webdav
url = https://library.shore.co.il/webdav/
vendor = other
user = nimrod
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment