View Single Post
Old 07-30-2014, 08:26 AM   #35
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
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 View Post
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:
  1. Download calibre-upgrade.sh to /usr/bin/calibre-upgrade.sh
  2. chmod it so it is executable.
  3. 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 View Post
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".

Last edited by eschwartz; 07-30-2014 at 08:36 AM.
eschwartz is offline   Reply With Quote