source: dass-tools/usr/bin/mirror-adapt-repository.sh@ 1272

Last change on this file since 1272 was 1256, checked in by joergs, on Aug 31, 2021 at 1:42:17 PM

convert URLs to http

  • Property svn:executable set to *
File size: 459 bytes
RevLine 
[1210]1#!/bin/bash
2
3set -o errexit -o nounset
4
5DEST="${1:-}"
6
[1211]7if ! [ -e "$DEST" ]; then
[1210]8 echo "FAILED: no directory given."
9 exit
10fi
11
12# adapt repository sources
13for i in `find $DEST -name "*.repo" -a ! -name "vermkv-*.repo"`; do
14 basename=`basename $i`
15 dirname=`dirname $i`
[1256]16 sed -i "s|https://|http://|" $i
[1210]17 echo "creating $dirname/vermkv-$basename"
[1256]18 sed -r "s|http[s]?://|http://install.vermkv/freigabe/|" $i > $dirname/vermkv-$basename
[1210]19done
Note: See TracBrowser for help on using the repository browser.