Browse Source

Nextcloud

main
Yigit Colakoglu 4 years ago
parent
commit
69fc018128
2 changed files with 20 additions and 1 deletions
  1. +0
    -1
      config/nextcloud/.gitignore
  2. +20
    -0
      config/nextcloud/nextcloud

+ 0
- 1
config/nextcloud/.gitignore View File

@ -1 +0,0 @@
nextcloud

+ 20
- 0
config/nextcloud/nextcloud View File

@ -0,0 +1,20 @@
#!/bin/bash
export NEXTCLOUD_USERNAME=yigitcolakoglu
export NEXTCLOUD_PASSWORD=$(pass show Server/drive.yigitcolakoglu.com/yigitcolakoglu)
export NEXTCLOUD_URL=https://drive.yigitcolakoglu.com/remote.php/webdav
declare -A mappings
mappings=(
["$NEXTCLOUD_URL/Documents"]="$HOME/Documents"
["$NEXTCLOUD_URL/Photos"]="$HOME/Pictures"
["$NEXTCLOUD_URL/Private"]="$HOME/Nextcloud/Private"
["$NEXTCLOUD_URL/Books"]="$HOME/Nextcloud/Books"
["$NEXTCLOUD_URL/InstantUpload"]="$HOME/Nextcloud/InstantUpload"
["$NEXTCLOUD_URL/Past Papers"]="$HOME/Nextcloud/Past Papers"
["$NEXTCLOUD_URL/InstantUpload"]="$HOME/Nextcloud/InstantUpload"
["$NEXTCLOUD_URL/University Applications"]="$HOME/Nextcloud/University Applications"
)

Loading…
Cancel
Save