blob: ed4391d02a2fb5b6fc61b6c7b75e4da940c6bed5 (
plain)
1
2
3
4
5
6
7
|
#! /usr/bin/env bash
set -e
echo "Backup /etc/apt/sources.list to /etc/apt/sources.list.d/debian.sources.bak."
echo "Replace http to https in /etc/apt/sources.list.d/debian.sources."
sed -i.bak -E "s|(URIs:\\s*)https?(://[-_.a-zA-Z0-9]+/.*)|\\1https\\2|" /etc/apt/sources.list.d/debian.sources
|