This commit is contained in:
Marc Beninca 2024-06-24 11:22:38 +02:00
parent 1bbfa13c10
commit 94087de223
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

10
pidd.sh
View file

@ -520,7 +520,7 @@ pidd_set_https_verification_off() {
pidd_set_dns_resolving() { pidd_set_dns_resolving() {
pidd_step "Set DNS resolving" pidd_step "Set DNS resolving"
for pidd_sdr__server in ${PIDD_DNS} ; do for pidd_sdr__server in ${PIDD_DNS}; do
pidd_sdr__text="${pidd_sdr__text}\ pidd_sdr__text="${pidd_sdr__text}\
nameserver ${pidd_sdr__server} nameserver ${pidd_sdr__server}
" "
@ -548,7 +548,7 @@ pidd_write_ca_certificates() {
pidd_mkdir "${PIDD_CA_ROOT}" pidd_mkdir "${PIDD_CA_ROOT}"
pidd_wcc__index=1 pidd_wcc__index=1
eval "pidd_wcc__text=\"\${PIDD_CA_${pidd_wcc__index}}\"" eval "pidd_wcc__text=\"\${PIDD_CA_${pidd_wcc__index}}\""
while [ -n "${pidd_wcc__text}" ] ; do while [ -n "${pidd_wcc__text}" ]; do
pidd_wcc__path="${PIDD_CA_ROOT}/${pidd_wcc__index}.crt" pidd_wcc__path="${PIDD_CA_ROOT}/${pidd_wcc__index}.crt"
pidd_split pidd_split
pidd_write \ pidd_write \
@ -608,7 +608,7 @@ pidd_install_python_modules() {
pidd_step "Install Python modules" pidd_step "Install Python modules"
pidd_ipm__root="$(mktemp --directory)" || exit pidd_ipm__root="$(mktemp --directory)" || exit
echo "${pidd_ipm__root}" echo "${pidd_ipm__root}"
for pidd_ipm__repository in "${PIDD_GIT_MAIN}" "${PIDD_GIT_ROOT}" ; do for pidd_ipm__repository in "${PIDD_GIT_MAIN}" "${PIDD_GIT_ROOT}"; do
case "${pidd_ipm__repository}" in case "${pidd_ipm__repository}" in
http*) pidd_ipm__url="${pidd_ipm__repository}" ;; http*) pidd_ipm__url="${pidd_ipm__repository}" ;;
/*) pidd_ipm__url="${PIDD_PROJECT_ROOT}${pidd_ipm__repository}" ;; /*) pidd_ipm__url="${PIDD_PROJECT_ROOT}${pidd_ipm__repository}" ;;
@ -677,7 +677,7 @@ pidd_cat() {
pidd_echo() { pidd_echo() {
if [ -n "${1}" ]; then if [ -n "${1}" ]; then
for pidd_echo__name in "${@}" ; do for pidd_echo__name in "${@}"; do
pidd_echo__text="" pidd_echo__text=""
eval "pidd_echo__text=\"\${${pidd_echo__name}}\"" eval "pidd_echo__text=\"\${${pidd_echo__name}}\""
echo "${pidd_echo__name} = \"${pidd_echo__text}\"" echo "${pidd_echo__name} = \"${pidd_echo__text}\""
@ -766,7 +766,7 @@ pidd_sed() {
shift shift
if [ -f "${pidd_sed__file}" ]; then if [ -f "${pidd_sed__file}" ]; then
pidd_cat "${pidd_sed__file}" pidd_cat "${pidd_sed__file}"
for pidd_sed__regex in "${@}" ; do for pidd_sed__regex in "${@}"; do
sed --in-place "s${pidd_sed__regex}g" "${pidd_sed__file}" \ sed --in-place "s${pidd_sed__regex}g" "${pidd_sed__file}" \
&& pidd_cat "${pidd_sed__file}" \ && pidd_cat "${pidd_sed__file}" \
|| exit || exit