mirror of https://github.com/tteck/Proxmox.git
Compare commits
No commits in common. "15f1343a000f8b43792b98c146d62d90c20cf719" and "45baf98e99a9fb5f09055880514e9cf5363c166f" have entirely different histories.
15f1343a00
...
45baf98e99
|
@ -5,13 +5,6 @@
|
||||||
|
|
||||||
- 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.
|
- 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.
|
||||||
|
|
||||||
## 2023-11-1
|
|
||||||
|
|
||||||
### Changed
|
|
||||||
|
|
||||||
- **Owncast LXC**
|
|
||||||
- NEW Script
|
|
||||||
|
|
||||||
## 2023-10-31
|
## 2023-10-31
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
|
@ -1,70 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func)
|
|
||||||
# Copyright (c) 2021-2023 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="Owncast"
|
|
||||||
var_disk="2"
|
|
||||||
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=""
|
|
||||||
DISABLEIP6="no"
|
|
||||||
MTU=""
|
|
||||||
SD=""
|
|
||||||
NS=""
|
|
||||||
MAC=""
|
|
||||||
VLAN=""
|
|
||||||
SSH="no"
|
|
||||||
VERB="no"
|
|
||||||
echo_default
|
|
||||||
}
|
|
||||||
|
|
||||||
function update_script() {
|
|
||||||
header_info
|
|
||||||
if [[ ! -d /opt/owncast ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
|
||||||
msg_info "Updating $APP LXC"
|
|
||||||
apt-get update &>/dev/null
|
|
||||||
apt-get -y upgrade &>/dev/null
|
|
||||||
msg_ok "Updated $APP LXC"
|
|
||||||
exit
|
|
||||||
}
|
|
||||||
|
|
||||||
start
|
|
||||||
build_container
|
|
||||||
description
|
|
||||||
|
|
||||||
msg_ok "Completed Successfully!\n"
|
|
||||||
echo -e "${APP} should be reachable by going to the following URL.
|
|
||||||
${BL}http://${IP}:8080${CL}
|
|
||||||
${BL}http://${IP}:8080/admin${CL} admin|abc123\n"
|
|
|
@ -1,54 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Copyright (c) 2021-2023 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 (Patience)"
|
|
||||||
$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 Owncast"
|
|
||||||
mkdir /opt/owncast
|
|
||||||
cd /opt/owncast
|
|
||||||
wget -q $(curl -s https://api.github.com/repos/owncast/owncast/releases/latest | grep download | grep linux-64bit | cut -d\" -f4)
|
|
||||||
$STD unzip owncast*.zip
|
|
||||||
rm owncast*.zip
|
|
||||||
msg_ok "Installed Owncast"
|
|
||||||
|
|
||||||
msg_info "Creating Service"
|
|
||||||
cat <<EOF >/etc/systemd/system/owncast.service
|
|
||||||
[Unit]
|
|
||||||
Description=Owncast
|
|
||||||
After=syslog.target network-online.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStart=/opt/owncast/./owncast
|
|
||||||
WorkingDirectory=/opt/owncast
|
|
||||||
Restart=always
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
systemctl enable -q --now owncast.service
|
|
||||||
msg_ok "Created Service"
|
|
||||||
|
|
||||||
motd_ssh
|
|
||||||
customize
|
|
||||||
|
|
||||||
msg_info "Cleaning up"
|
|
||||||
$STD apt-get autoremove
|
|
||||||
$STD apt-get autoclean
|
|
||||||
msg_ok "Cleaned"
|
|
|
@ -478,7 +478,7 @@ qm set $VMID \
|
||||||
-description "# OpenWrt VM
|
-description "# OpenWrt VM
|
||||||
### https://github.com/tteck/Proxmox
|
### https://github.com/tteck/Proxmox
|
||||||
[](https://ko-fi.com/D1D7EP4GF)" >/dev/null
|
[](https://ko-fi.com/D1D7EP4GF)" >/dev/null
|
||||||
msg_ok "Created OpenWrt VM ${CL}${BL}(${HN})"
|
msg_ok "OpenWrt VM ${CL}${BL}(${HN})"
|
||||||
msg_info "OpenWrt is being started in order to configure the network interfaces."
|
msg_info "OpenWrt is being started in order to configure the network interfaces."
|
||||||
qm start $VMID
|
qm start $VMID
|
||||||
sleep 15
|
sleep 15
|
||||||
|
|
Loading…
Reference in New Issue