Return to upload_release CVS log | Up to [local] / openbsd / update_openbsd |
File: [local] / openbsd / update_openbsd / upload_release (download)
Revision 1.11, Sun Oct 11 23:35:14 2015 UTC (8 years, 8 months ago) by andrew
s/sudo/doas/g |
#!/bin/sh RSYNC=`which rsync` if [ $? != 0 ]; then doas pkg_add -i rsync RSYNC=`which rsync` if [ $? != 0 ]; then echo RSYNC not installed! exit fi fi . /etc/release.conf RELEASEDIR=$RELEASE ls $RELEASEDIR | grep -v '^site' > $RELEASEDIR/index.txt rsync -avP $RELEASEDIR/ \ --files-from ${RELEASEDIR}/index.txt \ us.holligan.net:/var/www/ftp/pub/OpenBSD-stable/`uname -r`/`machine`/ rsync -avP /usr/ports/packages/`machine`/ftp/ \ us.holligan.net:/var/www/ftp/pub/OpenBSD-stable/`uname -r`/packages/`machine`/ ls $RELEASEDIR > $RELEASEDIR/index.txt rsync -avP $RELEASEDIR/ \ --files-from ${RELEASEDIR}/index.txt \ rrlhcsta0100:/var/www/ftp/pub/OpenBSD/`uname -r`/`machine`/ rsync -avP /usr/ports/packages/`machine`/all/ \ rrlhcsta0100:/var/www/ftp/pub/OpenBSD/`uname -r`/packages/`machine`/