Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
491 B

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. #!/bin/bash
  2. source $HOME/.config/nextcloud/nextcloud
  3. export XDG_RUNTIME_DIR=/tmp
  4. rm -rf $XDG_RUNTIME_DIR/nextcloud.out
  5. rm -rf $XDG_RUNTIME_DIR/nextcloud.err
  6. for i in "${!mappings[@]}"; do
  7. echo "Syncing: $i"
  8. mkdir -p "${mappings[$i]}"
  9. nextcloudcmd -h -u "$NEXTCLOUD_USERNAME" -p "$NEXTCLOUD_PASSWORD" \
  10. "${mappings[$i]}" "$i" >> $XDG_RUNTIME_DIR/nextcloud.out 2>> $XDG_RUNTIME_DIR/nextcloud.err
  11. done
  12. echo $(date '+%R') > $HOME/.cache/nextcloud-track
  13. kill -59 $(pidof dwmblocks)