mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
8e202e4e2b
commit
86df096387
@ -20,9 +20,11 @@ chsh -s /bin/zsh
|
|||||||
|
|
||||||
mkdir -p /root/staging /root/work/vim /srv/download /srv/manual
|
mkdir -p /root/staging /root/work/vim /srv/download /srv/manual
|
||||||
|
|
||||||
scp ~/.zshrc ~/.vimrc server:
|
export server=whatever
|
||||||
scp -r ~/work/vim/zsh-syntax-highlighting server:work/vim
|
scp ~/.zshrc ~/.vimrc $server:
|
||||||
scp -r ~/work/vim/zsh-history-substring-search server:work/vim
|
scp -r ~/work/vim/zsh-syntax-highlighting $server:work/vim
|
||||||
|
scp -r ~/work/vim/zsh-history-substring-search $server:work/vim
|
||||||
|
|
||||||
cd /usr/local && git clone https://github.com/kovidgoyal/calibre.git
|
cd /usr/local && git clone https://github.com/kovidgoyal/calibre.git
|
||||||
echo '#!/bin/sh\ncd /usr/local/calibre && git pull -q' > /usr/local/bin/update-calibre && chmod +x /usr/local/bin/update-calibre
|
echo '#!/bin/sh\ncd /usr/local/calibre && git pull -q' > /usr/local/bin/update-calibre && chmod +x /usr/local/bin/update-calibre
|
||||||
|
|
||||||
@ -38,14 +40,10 @@ Then, add the following to crontab::
|
|||||||
Nginx
|
Nginx
|
||||||
------
|
------
|
||||||
|
|
||||||
Copy over /etc/nginx/sites-available/default from another file server. When
|
export server=whatever
|
||||||
copying, remember to use cat instead of cp to preserve hardlinks (the file is a
|
ssh $server cat /etc/nginx/sites-available/default > /etc/nginx/sites-available/default
|
||||||
hardlink to /etc/nginx/sites-enabled/default)
|
ssh $server cat /etc/nginx/mime.types > /etc/nginx/mime.types
|
||||||
|
rsync -avz $server:/srv/ /srv/
|
||||||
Also copy over /etc/nginx/mime.types
|
|
||||||
|
|
||||||
rsync -avz other:/srv/ /srv/
|
|
||||||
|
|
||||||
service nginx start
|
service nginx start
|
||||||
|
|
||||||
Services
|
Services
|
||||||
@ -54,7 +52,7 @@ Services
|
|||||||
SSH into sourceforge and downloadbestsoftware so that their host keys are
|
SSH into sourceforge and downloadbestsoftware so that their host keys are
|
||||||
stored.
|
stored.
|
||||||
|
|
||||||
ssh -oStrictHostKeyChecking=no files.calibre-ebook.com (and whatever other mirrors are present)
|
ssh -oStrictHostKeyChecking=no files.calibre-ebook.com echo done (and whatever other mirrors are present)
|
||||||
ssh -oStrictHostKeyChecking=no kovid@mirror1.fosshub.com
|
ssh -oStrictHostKeyChecking=no kovid@mirror1.fosshub.com echo done
|
||||||
ssh -oStrictHostKeyChecking=no kovidgoyal,calibre@frs.sourceforge.net
|
ssh -oStrictHostKeyChecking=no kovidgoyal,calibre@frs.sourceforge.net
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user