X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=repo-push-public;fp=repo-push-public;h=87c70e7a69ca19b566526df8c01d934b1f2e76c8;hb=3788a9a77e0fac8a7af63fada2701ea019c13dfa;hp=d0251dc38e6a816300ae01df4fefe3a469e83385;hpb=1a944709215925ec369ae56e64559e8be3f679fd;p=deploy-utils.git diff --git a/repo-push-public b/repo-push-public index d0251dc..87c70e7 100755 --- a/repo-push-public +++ b/repo-push-public @@ -3,8 +3,8 @@ # Push changes to the local TMI repo to the public repo. We really should be # using launchpad to host the public version of the TMI repo. -PUBLICSERVER="$1" -[ -z "$PUBLICSERVER" ] && PUBLICSERVER=oss.titaniummirror.com +PUBLICSERVER=oss.titaniummirror.com +[ "$1" = "-s" -a -n "$2" ] && PUBLICSERVER="$2" echo "Updating APT repo on $PUBLICSERVER" rsync -avz --delete /var/local/aptrepo/ $PUBLICSERVER:/var/local/aptrepo/