Paginação de Produto
This commit is contained in:
@@ -388,9 +388,9 @@ function plugin.postgres {
|
||||
product.setup_repos ${1:-pgdg}
|
||||
}
|
||||
|
||||
#_pg_check_repo pgdg
|
||||
_pg_check_repo pgdg
|
||||
if ! [[ -z "${_pg_citus_version}" ]]; then
|
||||
#_pg_check_repo citus
|
||||
_pg_check_repo citus
|
||||
_pg_packages+=" postgresql-${_pg_version}-citus-${_pg_citus_version/*-}"
|
||||
_pg_shared_preload+="citus"
|
||||
fi
|
||||
@@ -439,7 +439,7 @@ EOF
|
||||
| jq -nR '{ "postgresql.conf": [ inputs ] }'; \
|
||||
sed -e '/^#/d;s/\ \+/\ /g' "${_pg_hba_file}" \
|
||||
| jq -nR '{ "pg_hba.conf": [ inputs ] }';
|
||||
) | jq -s '.'
|
||||
) | jq -s '.'; echo
|
||||
${ui}.writeln
|
||||
|
||||
${ui}.status info $"Reiniciando o cluster " \
|
||||
@@ -937,8 +937,11 @@ function product.install {
|
||||
${version} || :
|
||||
|
||||
${ui}.title $"Produto: " "$(product.get_property name)"
|
||||
${ui}.subtitle $"Configuração Geral"
|
||||
|
||||
#system.setlocale pt_BR.UTF-8
|
||||
|
||||
# TODO: move to PIP plugin
|
||||
#product.download
|
||||
|
||||
_paths="$(product.get_property paths)"
|
||||
@@ -958,6 +961,7 @@ function product.install {
|
||||
|
||||
# -- Instalando pacotes necessários
|
||||
system.install_pkgs ${BUILD_REQUIRES}
|
||||
${ui}.prompt "Aguarde ou pressione ENTER para continuar ..." -s -t 10 || :
|
||||
|
||||
# -- Compilando requisitos não empacotados
|
||||
_builds=$(grep "^local/" ${metadata_cache}/${PRODUCT}.local.build)
|
||||
@@ -971,12 +975,16 @@ function product.install {
|
||||
_k_args=${_args#*@}
|
||||
;;
|
||||
esac
|
||||
${ui}.set_cursor 0 8
|
||||
${ui}.get_cursor
|
||||
${ui}.clear
|
||||
${ui}.subtitle $"Executando plugin: "${_args%@*}
|
||||
${_callback} ${_k_args//;/\ }
|
||||
${ui}.prompt "Aguarde ou pressione ENTER para continuar ..." -s -t 10 || :
|
||||
done
|
||||
|
||||
## -- 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 || :
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user