Compare commits

...

8 Commits

Author SHA1 Message Date
tteckster cff9b233c7
Update CHANGELOG.md 2024-03-25 10:56:23 -04:00
tteckster d65fd07f50
Update post-pve-install.sh
tweak
2024-03-25 10:49:49 -04:00
tteckster fe416bc6ff
Update post-pve-install.sh
tweak
2024-03-25 10:48:31 -04:00
tteckster f25189933d
Update post-pve-install.sh
allow any PVE 8
2024-03-25 10:36:28 -04:00
tteckster 2f836f4e6d
Update mediamtx.sh
add additional storage
2024-03-25 10:21:02 -04:00
tteckster 12b0a0bf50
Update mediamtx-install.sh
add ffmpeg
2024-03-25 09:58:50 -04:00
tteckster 018ab69a33
Create mediamtx.sh 2024-03-25 09:49:50 -04:00
tteckster a807d87e84
Create mediamtx-install.sh 2024-03-25 09:48:54 -04:00
4 changed files with 133 additions and 2 deletions

View File

@ -10,6 +10,14 @@
- All LXC instances created using this repository come pre-installed with Midnight Commander, which is a command-line tool (`mc`) that offers a user-friendly file and directory management interface for the terminal environment.
- 🚨 **The scripts in the repository will no longer provide support for Proxmox VE 7 starting from July 2024 (scripts will not execute on PVE7). Subsequent <a href='https://forum.proxmox.com/threads/proxmox-ve-support-lifecycle.35755/' target='_blank' rel='noopener noreferrer'>Proxmox VE - Support Lifecycle</a>**
## 2024-03-25
### Changed
- **Proxmox VE Post Install**
- ~Requires Proxmox Virtual Environment Version 8.1.1 or later.~
- Requires Proxmox Virtual Environment Version 8.0 or later.
## 2024-03-24
### Changed

68
ct/mediamtx.sh Normal file
View File

@ -0,0 +1,68 @@
#!/usr/bin/env bash
source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func)
# Copyright (c) 2021-2024 tteck
# Author: tteck (tteckster)
# License: MIT
# https://github.com/tteck/Proxmox/raw/main/LICENSE
function header_info {
clear
cat <<"EOF"
__ ___ ___ __ __________ __
/ |/ /__ ____/ (_)___ _/ |/ /_ __/ |/ /
/ /|_/ / _ \/ __ / / __ `/ /|_/ / / / | /
/ / / / __/ /_/ / / /_/ / / / / / / / |
/_/ /_/\___/\__,_/_/\__,_/_/ /_/ /_/ /_/|_|
EOF
}
header_info
echo -e "Loading..."
APP="MediaMTX"
var_disk="4"
var_cpu="2"
var_ram="2048"
var_os="debian"
var_version="12"
variables
color
catch_errors
function default_settings() {
CT_TYPE="1"
PW=""
CT_ID=$NEXTID
HN=$NSAPP
DISK_SIZE="$var_disk"
CORE_COUNT="$var_cpu"
RAM_SIZE="$var_ram"
BRG="vmbr0"
NET="dhcp"
GATE=""
APT_CACHER=""
APT_CACHER_IP=""
DISABLEIP6="no"
MTU=""
SD=""
NS=""
MAC=""
VLAN=""
SSH="no"
VERB="no"
echo_default
}
function update_script() {
header_info
if [[ ! -d /opt/mediamtx/ ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
msg_error "There is currently no update path available."
exit
}
start
build_container
description
msg_ok "Completed Successfully!\n"

View File

@ -0,0 +1,55 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2024 tteck
# Author: tteck (tteckster)
# License: MIT
# https://github.com/tteck/Proxmox/raw/main/LICENSE
source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Dependencies"
$STD apt-get install -y curl
$STD apt-get install -y sudo
$STD apt-get install -y mc
$STD apt-get install -y ffmpeg
msg_ok "Installed Dependencies"
msg_info "Installing MediaMTX"
RELEASE=$(curl -s https://api.github.com/repos/bluenviron/mediamtx/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
mkdir -p /opt/mediamtx
cd /opt/mediamtx
wget -q https://github.com/bluenviron/mediamtx/releases/download/${RELEASE}/mediamtx_${RELEASE}_linux_amd64.tar.gz
tar xzf mediamtx_${RELEASE}_linux_amd64.tar.gz
rm -rf mediamtx_${RELEASE}_linux_amd64.tar.gz
msg_ok "Installed MediaMTX"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/mediamtx.service
[Unit]
Description=MediaMTX
After=syslog.target network-online.target
[Service]
ExecStart=/opt/mediamtx/./mediamtx
WorkingDirectory=/opt/mediamtx
Restart=always
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now mediamtx.service
msg_ok "Created Service"
motd_ssh
customize
msg_info "Cleaning up"
$STD apt-get autoremove
$STD apt-get autoclean
msg_ok "Cleaned"

View File

@ -231,9 +231,9 @@ while true; do
esac
done
if ! pveversion | grep -Eq "pve-manager/(8.1.[1-9])"; then
if ! pveversion | grep -Eq "pve-manager/8\.[0-2]\.[0-9]"; then
msg_error "This version of Proxmox Virtual Environment is not supported"
echo -e "Requires Proxmox Virtual Environment Version 8.1.1 or later."
echo -e "Requires Proxmox Virtual Environment Version 8.0 or later."
echo -e "Exiting..."
sleep 2
exit