DrTrigon has submitted this change and it was merged. Change subject: append 'README' and bug fix fabfile ......................................................................
append 'README' and bug fix fabfile Change-Id: Id3cf82f765687f9c913d543a4590011b3d183139 --- A README M fabfile.py 2 files changed, 52 insertions(+), 3 deletions(-) Approvals: DrTrigon: Verified; Looks good to me, approved diff --git a/README b/README new file mode 100644 index 0000000..bb40a1a --- /dev/null +++ b/README @@ -0,0 +1,49 @@ +I noticed many people using the framework haven't set the correct access +flags to their "login-data" dir. This could lead to someone using those +files to run your bot accounts. Although only other toolserver users can +see these files, its still an issue. Please make at least that dir "not +readable" for anyone but "owner". --Pyr0. + +There are other files to protect, so I wrote a small script, to call it: + ./backup +first set it's permissions with: + chmod u+x backup + chmod go-rwx backup + +============================================================ + +This is the toolserver account of DrTrigon +and is used primary for DrTrigonBot. + +Run DrTrigonBot once (during login): + nice -n +15 python ./runbotrun.py + +Run DrTrigonBot with screen: +(without having to remain constantly logged in, +look at https://wiki.toolserver.org/view/Screen too) + screen + nice -n +15 python ./runbotrun.py +use CTRL+A or CTRL+D to logout and + screen -r +to re-login + +============================================================ + +DrTrigonBot runs now as CRON job, use: + crontab -l + +============================================================ + +http://de.wikipedia.org/wiki/Benutzer:DrTrigonBot/ToDo-Liste + +============================================================ + +DrTrigonBot runs now through job scheduling (SGE), use: + + cronie -l + +from job server (submit.toolserver.org), open e.g. with: + + ssh -i ... drtri...@submit.toolserver.org + +============================================================ diff --git a/fabfile.py b/fabfile.py index ce16c18..b9c059f 100644 --- a/fabfile.py +++ b/fabfile.py @@ -2,8 +2,8 @@ """ HOW TO INSTALL DrTrigonBot TO TOOLSERVER AND/OR LABS-TOOLS -1.) download and install fabric -2.) download the fabfile: +1.) download and install git and fabric +2.) download the fabfile, e.g.: $ wget https://git.wikimedia.org/raw/pywikibot%2Fbots%2Fdrtrigonbot/HEAD/fabfile.py 3.) run the fabfile: $ fab -H localhost install @@ -56,7 +56,7 @@ _clone_git_user(repo=repo, dest=dest) local('cd %s; git config core.sparsecheckout true' % dest) for item in paths: - local('cd %s; echo %s > .git/info/sparse-checkout' % (dest, item)) + local('cd %s; echo %s >> .git/info/sparse-checkout' % (dest, item)) local('cd %s; git read-tree -m -u HEAD' % dest) def _clean_git(repos=[]): -- To view, visit https://gerrit.wikimedia.org/r/84219 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Id3cf82f765687f9c913d543a4590011b3d183139 Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/bots/drtrigonbot Gerrit-Branch: master Gerrit-Owner: DrTrigon <dr.tri...@surfeu.ch> Gerrit-Reviewer: DrTrigon <dr.tri...@surfeu.ch> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits