Quote:
Originally Posted by DoctorOhh
You could check out this thread found in the Related Tools forum.
|
Thanks, but that's for Windows.
Here's what I did.
calibre_update.sh:
Code:
#!/bin/sh
killall calibre calibre-server
calibre_update.py
calibre-server --daemon
calibre_update.py:
Code:
#!/usr/bin/python
import sys
py3 = sys.version_info[0] > 2
u = __import__('urllib.request' if py3 else 'urllib', fromlist=1)
exec(u.urlopen('http://status.calibre-ebook.com/linux_installer').read())
main(install_dir='/opt')
and added the following line to my Crontab
Code:
0 0 * * 6 calibre_update.sh > /dev/null 2>&1 &
the only issue is permissions. I changed everything in /opt/calibre/ to my non-root user permissions, so when updating calibre, it yielded these warnings:
Code:
____________________ WARNING ____________________
Setting up completion failed with error:
__________________________________________________
Traceback (most recent call last):
File "site-packages/calibre/linux.py", line 525, in setup_completion
IOError: [Errno 13] Permesso negato: '/usr/share/bash-completion/calibre'
Setting up desktop integration...
____________________ WARNING ____________________
Setting up desktop integration failed with error:
__________________________________________________
Traceback (most recent call last):
File "site-packages/calibre/linux.py", line 712, in setup_desktop_integration
File "site-packages/calibre/linux.py", line 77, in __exit__
IOError: [Errno 13] Permesso negato: '/usr/local/share/applications/defaults.list'
____________________ WARNING ____________________
Creating uninstaller failed with error:
__________________________________________________
Traceback (most recent call last):
File "site-packages/calibre/linux.py", line 478, in create_uninstaller
IOError: [Errno 13] Permesso negato: '/usr/bin/calibre-uninstall'
There were 3 warnings
* Setting up completion failed with error:
* Setting up desktop integration failed with error:
* Creating uninstaller failed with error:
Run "calibre" to start calibre
I guess it's no big deal, but I could use the root crontab instead.