Logo
Explore Help
Sign In
lbt/I2P_Website
1
0
Fork 0
You've already forked I2P_Website
forked from I2P_Developers/i2p.www
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
08319aa9c42f2cd961cbabcc99d8bd1b7c15d23f
I2P_Website/etc/update.vars

11 lines
190 B
Plaintext
Raw Normal View History

Added branch arg to "mtn pull"
2013-12-08 20:16:46 +00:00
MTNURL=127.0.0.1:8998
Updated mtn branch
2014-01-07 18:18:52 +00:00
MTNBRANCH=i2p.www
Define site-updater touch file in update vars To use Apache mod_wsgi, change $TOUCHFILE to point to the WSGI file, and set "WSGIScriptReloading On" in the Apache config.
2013-12-09 11:23:37 +00:00
TOUCHFILE=/tmp/2fcd2f17-c293-4f77-b4c9-9b266ba70daa
scripts: add optional support for "timeout"; allow site-updater to be called directly Sometimes the mtn syncs hang until aborted. Well, my syncing with welterde and echelon would hang periodically until I added the same timeout support I'm adding here. In short, if Montone's action has not completed within 20 minutes, forcably kill the process. /usr/bin/timeout is a part of coreutils so most (all?) Linux distributions should have it but I don't require timeout to exist. If "timeout" can be found, it'll be used. Also, set site-updater.sh to change to the directory in which the script is located. This way one can give an absolute path in a cronjob. Both of these changes should be low risk.
2014-02-13 22:13:21 +00:00
TIMEOUT="20m"
if [ $(which timeout) ]; then
MTN="timeout $TIMEOUT mtn"
else
MTN="mtn"
fi
Reference in New Issue Copy Permalink
Powered by Gitea Version: 65cd3f5 Page: 528ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API