A collection of scripts to help create and maintain mirrors of https://deb.nodesource.com/ on plain dumb webspace.
For motivation, pros and cons, see nodesource issue #71.
- Install:
cd /var/www/my-node-mirror/htdocs
wget https://github.com/mk-pmb/nodesource-mirror-bash-wget/raw/master/upd_all.sh
chmod a+x upd_all.sh- (optional) Configure your mirror:
echo Options +Indexes >>.htaccess
wget -O exclude.local.txt https://github.com/mk-pmb/nodesource-mirror-bash-wget/raw/master/doc/exclude.example.txt
head exclude.*- (optional) Preview what node versions will be downloaded:
./upd_all.sh _p # see hints below- Run:
./upd_all.sh &- The preview may take a while to download the list of available products.
- Versions with an exclamation mark (
!) in front of them are excluded by your config. - If any version line has a
!somewhere expect at start of line, something is very broken. - Versions without
!will be downlaoded. - Option
_pis like-p===--list-productsexcept it uses_as the version separator, as will be expected forexcludeconfig.
ISC