Compare commits

..

13 Commits

Author SHA1 Message Date
tteckster ec320d565a
Update build.func
revert add Channels to the VAAPI hardware transcoding group
2023-11-30 19:43:55 -05:00
tteckster dd43d742e0
Update build.func
add Channels to the VAAPI hardware transcoding group
2023-11-30 19:42:10 -05:00
tteckster 590f85ccd2
Update channels-install.sh
add extra dependencies
2023-11-30 19:39:28 -05:00
tteckster 6dab19d260
Update channels.sh
adjust ram
2023-11-30 19:35:09 -05:00
tteckster ed40ffc000
Update channels.sh
tweak name
2023-11-30 18:03:25 -05:00
tteckster e01ff6dcb4
Update channels-install.sh
tweak
2023-11-30 17:57:33 -05:00
tteckster 3cda045cce
Create channels.sh 2023-11-30 17:56:40 -05:00
tteckster 83136610ed
Create channels-install.sh 2023-11-30 17:51:02 -05:00
tteckster f0a661fea9
Update zwave-js-ui.sh
tweak cleanup
2023-11-30 14:28:13 -05:00
tteckster d4c685f05e
Update zwave-js-ui.sh
tweak service file
2023-11-30 14:23:45 -05:00
tteckster 76dbbf91ed
Update zwave-js-ui.sh
tweak
2023-11-30 14:20:12 -05:00
tteckster 6594ce2f3a
Update zwave-js-ui.sh
fixes https://github.com/tteck/Proxmox/issues/2129
2023-11-30 14:18:09 -05:00
tteckster de0fd7aa6d
Update zwave-js-ui-install.sh
fix service
2023-11-30 14:11:29 -05:00
4 changed files with 116 additions and 3 deletions

66
ct/channels.sh Normal file
View File

@ -0,0 +1,66 @@
#!/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="Channels"
var_disk="8"
var_cpu="2"
var_ram="1024"
var_os="debian"
var_version="12"
variables
color
catch_errors
function default_settings() {
CT_TYPE="0"
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/channels-dvr ]]; 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"
echo -e "${APP} Setup should be reachable by going to the following URL.
${BL}http://${IP}:8089 ${CL} \n"

View File

@ -64,7 +64,18 @@ function update_script() {
msg_info "Updating Z-wave JS UI"
wget https://github.com/zwave-js/zwave-js-ui/releases/download/${RELEASE}/zwave-js-ui-${RELEASE}-linux.zip &>/dev/null
unzip zwave-js-ui-${RELEASE}-linux.zip &>/dev/null
\cp -R zwave-js-ui-linux /opt/zwave-js-ui
\cp -R zwave-js-ui /opt/zwave-js-ui
service_path="/etc/systemd/system/zwave-js-ui.service"
echo "[Unit]
Description=zwave-js-ui
Wants=network-online.target
After=network-online.target
[Service]
User=root
WorkingDirectory=/opt/zwave-js-ui
ExecStart=/opt/zwave-js-ui/zwave-js-ui
[Install]
WantedBy=multi-user.target" >$service_path
msg_ok "Updated Z-wave JS UI"
msg_info "Starting Z-wave JS UI"
@ -72,7 +83,7 @@ function update_script() {
msg_ok "Started Z-wave JS UI"
msg_info "Cleanup"
rm -rf zwave-js-ui-${RELEASE}-linux.zip zwave-js-ui-linux store
rm -rf zwave-js-ui-${RELEASE}-linux.zip zwave-js-ui store
msg_ok "Cleaned"
msg_ok "Updated Successfully!\n"
exit

View File

@ -0,0 +1,36 @@
#!/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"
$STD apt-get install -y curl
$STD apt-get install -y sudo
$STD apt-get install -y mc
$STD apt-get install -y chromium-browser
$STD apt-get install -y xvfb
msg_ok "Installed Dependencies"
msg_info "Installing Channels DVR Server (Patience)"
cd /opt
$STD bash <(curl -fsSL https://getchannels.com/dvr/setup.sh)
# adduser $(id -u -n) video && adduser $(id -u -n) render
msg_ok "Installed Channels DVR Server"
motd_ssh
customize
msg_info "Cleaning up"
$STD apt-get autoremove
$STD apt-get autoclean
msg_ok "Cleaned"

View File

@ -36,7 +36,7 @@ After=network-online.target
[Service]
User=root
WorkingDirectory=/opt/zwave-js-ui
ExecStart=/opt/zwave-js-ui/zwave-js-ui-linux
ExecStart=/opt/zwave-js-ui/zwave-js-ui
[Install]
WantedBy=multi-user.target" >$service_path
systemctl start zwave-js-ui