Files
.github
ct
frontend
install
json
misc
copy-data
images
.app-headers
add-lxc-iptag.sh
add-netbird-lxc.sh
add-tailscale-lxc.sh
all-templates.sh
alpine-install.func
build.func
clean-lxcs.sh
clean.sh
code-server.sh
container-restore-from-backup.sh
core-restore-from-backup.sh
cron-update-lxcs.sh
crowdsec.sh
daemonsync_2.2.0.0059_amd64.deb
figlet.tar.xz
filebrowser.sh
frigate-support.sh
fstrim.sh
glances.sh
host-backup.sh
hw-acceleration.sh
install.func
kernel-clean.sh
kernel-pin.sh
microcode.sh
monitor-all.sh
netdata.sh
olivetin.sh
pbs3-upgrade.sh
post-pbs-install.sh
post-pve-install.sh
pve8-upgrade.sh
pyenv.sh
scaling-governor.sh
update-lxcs-cron.sh
update-lxcs.sh
update-repo.sh
usb-passthrough.sh
webmin.sh
turnkey
vm
.editorconfig
CHANGELOG.md
CODE-AUDIT.md
LICENSE
README.md
SECURITY.md
USER_SUBMITTED_GUIDES.md
ProxmoxVE_Scripts/misc/olivetin.sh

63 lines
1.4 KiB
Bash

#!/usr/bin/env bash
# Copyright (c) 2021-2025 tteck
# Author: tteck (tteckster)
# License: MIT
# https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
function header_info {
clear
cat <<"EOF"
____ ___ _______
/ __ \/ (_) _____/_ __(_)___
/ / / / / / | / / _ \/ / / / __ \
/ /_/ / / /| |/ / __/ / / / / / /
\____/_/_/ |___/\___/_/ /_/_/ /_/
EOF
}
IP=$(hostname -I | awk '{print $1}')
YW=$(echo "\033[33m")
BL=$(echo "\033[36m")
GN=$(echo "\033[1;92m")
CL=$(echo "\033[m")
BFR="\\r\\033[K"
HOLD="-"
CM="${GN}${CL}"
APP="OliveTin"
hostname="$(hostname)"
set-e
header_info
while true; do
read -p "This will Install ${APP} on $hostname. Proceed(y/n)?" yn
case $yn in
[Yy]*) break ;;
[Nn]*) exit ;;
*) echo "Please answer yes or no." ;;
esac
done
header_info
function msg_info() {
local msg="$1"
echo -ne " ${HOLD} ${YW}${msg}..."
}
function msg_ok() {
local msg="$1"
echo -e "${BFR} ${CM} ${GN}${msg}${CL}"
}
msg_info "Installing ${APP}"
wget -q https://github.com/OliveTin/OliveTin/releases/latest/download/OliveTin_linux_amd64.deb
dpkg -i OliveTin_linux_amd64.deb &>/dev/null
systemctl enable --now OliveTin &>/dev/null
rm OliveTin_linux_amd64.deb
msg_ok "Installed ${APP} on $hostname"
msg_ok "Completed Successfully!\n"
echo -e "${APP} should be reachable by going to the following URL.
${BL}http://$IP:1337${CL} \n"