From XPUB & Lens-Based wiki
Revision as of 18:33, 6 February 2021 by Michael Murtaugh (talk | contribs)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Some useful links / notes related to the sandbot setup.

Running something as www-data

 sudo su www-data -s /bin/sh

Setting up /var/www/html with githook:

 sudo chown www-data /var/www/html
 git remote set-url origin

Created file /usr/lib/cgi-bin/pull_XXXXXXXXXX.cgi


echo "Content-type:text/html"
cd /var/www/html
git fetch --all
git reset --hard origin/master

Testing the webhook...

sudo su www-data -s /bin/sh
cd /usr/lib/cgi-bin

Test from browser: