2024-04-04 06:35:00 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
2024-04-27 18:02:44 +03:00
|
|
|
if [ -f /tmp/nc-sync.lock ]; then
|
|
|
|
notify-send "Lock found, exiting"
|
|
|
|
exit 1
|
|
|
|
else
|
|
|
|
touch /tmp/nc-sync.lock
|
2024-04-22 06:47:34 +03:00
|
|
|
# Needed for cronjob
|
|
|
|
source /home/siina/.config/private.env
|
|
|
|
|
|
|
|
NC_DIR="/home/siina/Nextcloud"
|
|
|
|
NC_URL="https://cloud.criminallycute.fi"
|
|
|
|
|
2024-04-27 18:02:44 +03:00
|
|
|
notify-send "Nextcloud Sync Syncing ..."
|
2024-04-22 06:47:34 +03:00
|
|
|
nextcloudcmd -u $NC_USER -p $NC_PASS $NC_DIR $NC_URL
|
2024-04-27 18:02:44 +03:00
|
|
|
notify-send "Nextcloud Sync Done syncing"
|
|
|
|
rm /tmp/nc-sync.lock
|
|
|
|
fi
|
2024-04-04 06:35:00 +03:00
|
|
|
|