New update! I created a sticky thread a while back describing the update script, here:
https://www.mobileread.com/forums/sho...d.php?t=237233
It has now been updated with some things of mild importance (you might want to update

):
Quote:
Originally Posted by eschwartz
I have created a github repository here: https://github.com/eli-schwartz/calibre-installer which contains an updated calibre-upgrade.sh as well as a script à la calibre's installer, which allows for a one-liner installation of the upgrade script. (Was that statement confusing enough?  )
Run the following command in a terminal:
Code:
sudo -v && wget -nv -O- https://github.com/eli-schwartz/calibre-installer/raw/master/calibre-installer.sh | sudo sh -
It will:
- Download calibre-upgrade.sh to /usr/bin/calibre-upgrade.sh
- chmod it so it is executable.
- Add the cron job to root's crontab. (If cron is not installed*, this step will fail and report that to you.)
If anyone has any improvement suggestions, I'd be delighted to hear them.
* Because on my system it isn't -- who knew? Apparently, systemd is the wave of the future, and Arch Linux wants you to use systemd timers instead of crontabs. When I get around to it (or rather, figure out how they work ), I may write one of these timers. Meanwhile, if you are on Arch too, you can manually install a cron daemon or write your own stinking timer. (If anyone does, please share. </beg> )
|
Quote:
Originally Posted by eschwartz
Things the new script fixes:
- running "calibre --shutdown-running-calibre" as root doesn't seem particularly useful, unless you happen to be running calibre as root.
So now it sudo's to each logged-in user to shutdown.
- Makes sure you run as root.

- Prettier messages when calibre is not yet installed. Instead of getting a lot of "bash: ****: command not found".
|