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
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -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
+1 −0
Original line number Diff line number Diff line
@@ -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"
+6 −0
Original line number Diff line number Diff line
@@ -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