Neatened up Installer script step for adding first repo

This commit is contained in:
2026-03-29 01:43:45 +02:00
parent 7431547536
commit 3f4eb7e938
2 changed files with 4 additions and 4 deletions

View File

@@ -1 +1 @@
0.1.2
0.1.3

View File

@@ -1,6 +1,6 @@
#!/bin/bash
VERSION="0.1.2"
VERSION="0.1.3"
function doError {
if [[ -z ${1} ]]; then
@@ -135,11 +135,11 @@ if [[ "${laststep}" -lt 40 ]]; then
localrepo="${remoterepo}"
fi
[[ "${localrepo}" =~ ^[a-z0-9]+([a-z0-9-]*[a-z0-9])?$ ]] || doError "Invalid repo name...\nMust use lowercase letter, digits and/or dash - (dash can not be the first or last character)..."
echo -en "What is the name of the section(s) on ${remotefqdn}/${remoterepo}\nthat you want to mirror? (Use a comma , as a delimeter if you want to use more than one - no spaces) "
echo -en "What is the name of the section(s) on ${remotefqdn}/${remoterepo} that you want to mirror?\n(Use a comma , as a delimeter if you want to use more than one - no spaces) "
read -r section
echo
[[ "${section}" =~ ^([a-z0-9]+([a-z0-9-]*[a-z0-9])?)(,([a-z0-9]+([a-z0-9-]*[a-z0-9])?))*$ ]] || doError "Invalid section(s) name(s)...\nMust use lowercase letter, digits and/or dash - (dash can not be the first or last character)...\nYou can use a comma , as a delimiter for multiple sections, but no spaces..."
echo -en "What is the name of the distribution(s) on ${remotefqdn}/${remoterepo}\nthat you want to mirror? (Use a comma , as a delimeter if you want to use more than one - no spaces) "
echo -en "What is the name of the distribution(s) on ${remotefqdn}/${remoterepo} that you want to mirror?\n(Use a comma , as a delimeter if you want to use more than one - no spaces) "
read -r distribution
echo
[[ "${distribution}" =~ ^([a-z0-9]+([a-z0-9-]*[a-z0-9])?)(,([a-z0-9]+([a-z0-9-]*[a-z0-9])?))*$ ]] || doError "Invalid distribution(s) name(s)...\nMust use lowercase letter, digits and/or dash - (dash can not be the first or last character)...\nYou can use a comma , as a delimiter for multiple distributions, but no spaces..."