# 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/