Caldav and Carddav sync background process
-
I was able to set up my carddav and caldav accounts like this:
https://docs.ubports.com/en/latest/userguide/advanceduse/dav.htmlAnd I was able to delete wrong configurations like this:
https://forums.ubports.com/topic/7092/delete-a-calenendar/5?_=1643577988544Unfortunately, I noticed that changes were not uploaded. If I understand correctly, this is what cron would be for.
Shouldn't these lines in the script dav.sh be the ones responsible for this? Is there something wrong with it?
How does that work properly?
#Add Sync Cronjob sudo mount / -o remount,rw COMMAND_LINE="export DISPLAY=:0.0 && export DBUS_SESSION_BUS_ADDRESS=$(ps -u phablet e | grep -Eo 'dbus-daemon.*address=unix:abstract=/tmp/dbus-[A-Za-z0-9]{10}' | tail -c35) && /usr/bin/syncevolution $CALENDAR_CONFIG_NAME && /usr/bin/syncevolution $CONTACTS_CONFIG_NAME" sudo echo "$COMMAND_LINE" > /sbin/sogosync sudo chmod +x /sbin/sogosync CRON_LINE="@$CRON_FREQUENCY /sbin/sogosync" (crontab -u phablet -r;) # only if no other cronjob already exist in the crontab (crontab -u phablet -l; echo "$CRON_LINE" ) | crontab -u phablet - sudo mount / -o remount,ro sudo service cron restart
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login