[FlowiseAI] Disable script

This commit is contained in:
Sam Heinz
2024-04-14 19:31:48 +10:00
parent 68a2785dce
commit 9bf0340e24
+67 -66
View File
@@ -1,72 +1,73 @@
#!/usr/bin/env bash echo "Unsupported, view notes on GitHub"
source <(curl -s https://raw.githubusercontent.com/asylumexp/Proxmox/main/misc/build.func) # #!/usr/bin/env bash
# Copyright (c) 2021-2024 tteck # source <(curl -s https://raw.githubusercontent.com/asylumexp/Proxmox/main/misc/build.func)
# Author: tteck (tteckster) # # Copyright (c) 2021-2024 tteck
# License: MIT # # Author: tteck (tteckster)
# https://github.com/tteck/Proxmox/raw/main/LICENSE # # License: MIT
# # https://github.com/tteck/Proxmox/raw/main/LICENSE
function header_info { # function header_info {
clear # clear
cat <<"EOF" # cat <<"EOF"
________ _ ___ ____ # ________ _ ___ ____
/ ____/ /___ _ __(_)_______ / | / _/ # / ____/ /___ _ __(_)_______ / | / _/
/ /_ / / __ \ | /| / / / ___/ _ \/ /| | / / # / /_ / / __ \ | /| / / / ___/ _ \/ /| | / /
/ __/ / / /_/ / |/ |/ / (__ ) __/ ___ |_/ / # / __/ / / /_/ / |/ |/ / (__ ) __/ ___ |_/ /
/_/ /_/\____/|__/|__/_/____/\___/_/ |_/___/ # /_/ /_/\____/|__/|__/_/____/\___/_/ |_/___/
EOF # EOF
} # }
header_info # header_info
echo -e "Loading..." # echo -e "Loading..."
APP="FlowiseAI" # APP="FlowiseAI"
var_disk="10" # var_disk="10"
var_cpu="2" # var_cpu="2"
var_ram="2048" # var_ram="2048"
var_os="debian" # var_os="debian"
var_version="12" # var_version="12"
variables # variables
color # color
catch_errors # catch_errors
function default_settings() { # function default_settings() {
CT_TYPE="1" # CT_TYPE="1"
PW="" # PW=""
CT_ID=$NEXTID # CT_ID=$NEXTID
HN=$NSAPP # HN=$NSAPP
DISK_SIZE="$var_disk" # DISK_SIZE="$var_disk"
CORE_COUNT="$var_cpu" # CORE_COUNT="$var_cpu"
RAM_SIZE="$var_ram" # RAM_SIZE="$var_ram"
BRG="vmbr0" # BRG="vmbr0"
NET="dhcp" # NET="dhcp"
GATE="" # GATE=""
APT_CACHER="" # APT_CACHER=""
APT_CACHER_IP="" # APT_CACHER_IP=""
DISABLEIP6="no" # DISABLEIP6="no"
MTU="" # MTU=""
SD="" # SD=""
NS="" # NS=""
MAC="" # MAC=""
VLAN="" # VLAN=""
SSH="no" # SSH="no"
VERB="no" # VERB="no"
echo_default # echo_default
} # }
function update_script() { # function update_script() {
header_info # header_info
if [[ ! -f /etc/systemd/system/flowise.service ]]; then msg_error "No ${APP} Installation Found!"; exit; fi # if [[ ! -f /etc/systemd/system/flowise.service ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
msg_info "Updating ${APP}" # msg_info "Updating ${APP}"
systemctl stop flowise # systemctl stop flowise
npm install -g flowise --upgrade # npm install -g flowise --upgrade
systemctl start flowise # systemctl start flowise
msg_ok "Updated ${APP}" # msg_ok "Updated ${APP}"
exit # exit
} # }
start # start
build_container # build_container
description # description
msg_ok "Completed Successfully!\n" # msg_ok "Completed Successfully!\n"
echo -e "${APP} should be reachable by going to the following URL. # echo -e "${APP} should be reachable by going to the following URL.
${BL}http://${IP}:3000${CL} \n" # ${BL}http://${IP}:3000${CL} \n"