From 17fbb3bc90d1ac69b4e9e3c22d9b3292567ccd99 Mon Sep 17 00:00:00 2001 From: Christian Tosta Date: Wed, 11 Jun 2025 18:29:00 -0300 Subject: [PATCH] =?UTF-8?q?Pagina=C3=A7=C3=A3o=20de=20Produto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sig-installer-dev | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/sig-installer-dev b/sig-installer-dev index f662482..5fd6d48 100755 --- a/sig-installer-dev +++ b/sig-installer-dev @@ -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