From 3fa516f94ba3f1b34b59e041c00d395fe33cd339 Mon Sep 17 00:00:00 2001 From: "push-app-to-main[bot]" <203845782+push-app-to-main[bot]@users.noreply.github.com> Date: Tue, 4 Aug 2026 23:02:28 +0200 Subject: [PATCH] Hister (#16259) * Add hister (ct) * Update source command in hister.sh Replace local source with direct curl command for build.func. * Update ct/hister.sh * Update install/hister-install.sh --------- Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com> Co-authored-by: CanbiZ (MickLesk) <47820557+MickLesk@users.noreply.github.com> Co-authored-by: Sam Heinz --- ct/headers/hister | 6 +++++ ct/hister.sh | 55 +++++++++++++++++++++++++++++++++++++++ install/hister-install.sh | 51 ++++++++++++++++++++++++++++++++++++ 3 files changed, 112 insertions(+) create mode 100644 ct/headers/hister create mode 100644 ct/hister.sh create mode 100644 install/hister-install.sh diff --git a/ct/headers/hister b/ct/headers/hister new file mode 100644 index 000000000..30902124e --- /dev/null +++ b/ct/headers/hister @@ -0,0 +1,6 @@ + __ ___ __ + / / / (_)____/ /____ _____ + / /_/ / / ___/ __/ _ \/ ___/ + / __ / (__ ) /_/ __/ / +/_/ /_/_/____/\__/\___/_/ + diff --git a/ct/hister.sh b/ct/hister.sh new file mode 100644 index 000000000..17767ab98 --- /dev/null +++ b/ct/hister.sh @@ -0,0 +1,55 @@ +#!/usr/bin/env bash +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +# Copyright (c) 2021-2026 community-scripts ORG +# Author: MickLesk (CanbiZ) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/asciimoo/hister + +APP="Hister" +var_tags="${var_tags:-search;browser-history;personal}" +var_cpu="${var_cpu:-1}" +var_ram="${var_ram:-1024}" +var_disk="${var_disk:-20}" +var_os="${var_os:-debian}" +var_version="${var_version:-13}" +var_arm64="${var_arm64:-yes}" +var_unprivileged="${var_unprivileged:-1}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + + if [[ ! -f /usr/local/bin/hister ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "hister" "asciimoo/hister"; then + msg_info "Stopping Service" + systemctl stop hister + msg_ok "Stopped Service" + + fetch_and_deploy_gh_release "hister" "asciimoo/hister" "singlefile" "latest" "/usr/local/bin" "hister_*_linux_$(arch_resolve)" + + msg_info "Starting Service" + systemctl start hister + msg_ok "Started Service" + msg_ok "Updated successfully!" + fi + exit +} + +start +build_container +description + +msg_ok "Completed Successfully!\n" +echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" +echo -e "${INFO}${YW}Access it using the following URL:${CL}" +echo -e "${GATEWAY}${BGN}http://${IP}:4433${CL}" diff --git a/install/hister-install.sh b/install/hister-install.sh new file mode 100644 index 000000000..aa7c0ad6f --- /dev/null +++ b/install/hister-install.sh @@ -0,0 +1,51 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: MickLesk (CanbiZ) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/asciimoo/hister + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +fetch_and_deploy_gh_release "hister" "asciimoo/hister" "singlefile" "latest" "/usr/local/bin" "hister_*_linux_$(arch_resolve)" + +msg_info "Configuring Hister" +mkdir -p /opt/hister/data /etc/hister +LOCAL_IP=$(hostname -I | awk '{print $1}') +cat </etc/hister/config.yaml +app: + directory: '/opt/hister/data' +server: + address: '0.0.0.0:4433' + base_url: 'http://${LOCAL_IP}:4433' +EOF +msg_ok "Configured Hister" + +msg_info "Creating Service" +cat </etc/systemd/system/hister.service +[Unit] +Description=Hister Search Engine +After=network.target + +[Service] +Type=simple +User=root +ExecStart=/usr/local/bin/hister listen --config /etc/hister/config.yaml +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now hister +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc