mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-11-22 13:35:15 +00:00
Replaces repeated manual cleanup commands with a single call to the cleanup_lxc function across all install scripts. This change improves maintainability and consistency by centralizing cleanup logic.
29 lines
945 B
Bash
29 lines
945 B
Bash
#!/usr/bin/env bash
|
|
|
|
# Copyright (c) 2021-2025 community-scripts ORG
|
|
# Author: tlissak
|
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
# Source: https://typesense.org/
|
|
|
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
|
color
|
|
verb_ip6
|
|
catch_errors
|
|
setting_up_container
|
|
network_check
|
|
update_os
|
|
|
|
msg_info "Installing TypeSense"
|
|
RELEASE=$(curl -fsSL https://api.github.com/repos/typesense/typesense/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
|
cd /opt
|
|
curl -fsSL "https://dl.typesense.org/releases/${RELEASE}/typesense-server-${RELEASE}-amd64.deb" -o "/opt/typesense-server-${RELEASE}-amd64.deb"
|
|
$STD apt install -y /opt/typesense-server-${RELEASE}-amd64.deb
|
|
echo 'enable-cors = true' >>/etc/typesense/typesense-server.ini
|
|
rm -rf /opt/typesense-server-${RELEASE}-amd64.deb
|
|
echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt"
|
|
msg_ok "Installed TypeSense"
|
|
|
|
motd_ssh
|
|
customize
|
|
cleanup_lxc
|