Paginação de Produto

This commit is contained in:
Christian Tosta
2025-06-11 18:29:00 -03:00
parent dd487b9fc1
commit 17fbb3bc90

View File

@@ -388,9 +388,9 @@ function plugin.postgres {
product.setup_repos ${1:-pgdg} product.setup_repos ${1:-pgdg}
} }
#_pg_check_repo pgdg _pg_check_repo pgdg
if ! [[ -z "${_pg_citus_version}" ]]; then if ! [[ -z "${_pg_citus_version}" ]]; then
#_pg_check_repo citus _pg_check_repo citus
_pg_packages+=" postgresql-${_pg_version}-citus-${_pg_citus_version/*-}" _pg_packages+=" postgresql-${_pg_version}-citus-${_pg_citus_version/*-}"
_pg_shared_preload+="citus" _pg_shared_preload+="citus"
fi fi
@@ -439,7 +439,7 @@ EOF
| jq -nR '{ "postgresql.conf": [ inputs ] }'; \ | jq -nR '{ "postgresql.conf": [ inputs ] }'; \
sed -e '/^#/d;s/\ \+/\ /g' "${_pg_hba_file}" \ sed -e '/^#/d;s/\ \+/\ /g' "${_pg_hba_file}" \
| jq -nR '{ "pg_hba.conf": [ inputs ] }'; | jq -nR '{ "pg_hba.conf": [ inputs ] }';
) | jq -s '.' ) | jq -s '.'; echo
${ui}.writeln ${ui}.writeln
${ui}.status info $"Reiniciando o cluster " \ ${ui}.status info $"Reiniciando o cluster " \
@@ -937,8 +937,11 @@ function product.install {
${version} || : ${version} || :
${ui}.title $"Produto: " "$(product.get_property name)" ${ui}.title $"Produto: " "$(product.get_property name)"
${ui}.subtitle $"Configuração Geral"
#system.setlocale pt_BR.UTF-8 #system.setlocale pt_BR.UTF-8
# TODO: move to PIP plugin
#product.download #product.download
_paths="$(product.get_property paths)" _paths="$(product.get_property paths)"
@@ -958,6 +961,7 @@ function product.install {
# -- Instalando pacotes necessários # -- Instalando pacotes necessários
system.install_pkgs ${BUILD_REQUIRES} system.install_pkgs ${BUILD_REQUIRES}
${ui}.prompt "Aguarde ou pressione ENTER para continuar ..." -s -t 10 || :
# -- Compilando requisitos não empacotados # -- Compilando requisitos não empacotados
_builds=$(grep "^local/" ${metadata_cache}/${PRODUCT}.local.build) _builds=$(grep "^local/" ${metadata_cache}/${PRODUCT}.local.build)
@@ -971,12 +975,16 @@ function product.install {
_k_args=${_args#*@} _k_args=${_args#*@}
;; ;;
esac esac
${ui}.set_cursor 0 8
${ui}.get_cursor
${ui}.clear
${ui}.subtitle $"Executando plugin: "${_args%@*} ${ui}.subtitle $"Executando plugin: "${_args%@*}
${_callback} ${_k_args//;/\ } ${_callback} ${_k_args//;/\ }
${ui}.prompt "Aguarde ou pressione ENTER para continuar ..." -s -t 10 || :
done done
## -- SIG ----------------------------- # ## -- SIG ----------------------------- #
# Pyenv # TODO: Pyenv -> Use .python-version on user home!
# useradd -m -d /srv/sig/${PRODUCT} -s /bin/bash -G pyenv -r -U ${PRODUCT} 2>/dev/null || : # useradd -m -d /srv/sig/${PRODUCT} -s /bin/bash -G pyenv -r -U ${PRODUCT} 2>/dev/null || :
# cat /etc/skel/.bashrc > /srv/sig/${PRODUCT}/.bashrc # cat /etc/skel/.bashrc > /srv/sig/${PRODUCT}/.bashrc
# echo -e "\n# Load Python ${_pdpy}\npyenv local ${_pdpy} >/dev/null 2>&1" >> /srv/sig/${PRODUCT}/.bashrc # echo -e "\n# Load Python ${_pdpy}\npyenv local ${_pdpy} >/dev/null 2>&1" >> /srv/sig/${PRODUCT}/.bashrc