Compare commits

30 Commits

Author SHA1 Message Date
9df8b9cd2e Merge pull request 'fix: update repository URLs from Dictionarry-Hub to BiluliB' (#22) from profilarr-script into dev
Reviewed-on: #22
2025-07-22 16:16:33 +02:00
a1c4e94cb5 fix: update repository URLs from Dictionarry-Hub to BiluliB 2025-07-22 14:16:14 +00:00
8160861e6b Merge pull request 'fix: resolve update script repository inconsistency and missing directory' (#21) from profilarr-script into dev
Reviewed-on: #21
2025-07-22 15:35:51 +02:00
edc54b2e85 fix: resolve update script repository inconsistency and missing directory 2025-07-22 13:35:39 +00:00
5278685dff Merge pull request 'changed update url' (#20) from profilarr-script into dev
Reviewed-on: #20
2025-07-22 15:33:26 +02:00
4eb3a9c2c3 changed update url 2025-07-22 13:33:11 +00:00
3a2d253bcc Merge pull request 'remove v from release variable' (#19) from profilarr-script into dev
Reviewed-on: #19
2025-07-22 15:31:29 +02:00
4d37f159ad remove v from release variable 2025-07-22 13:30:46 +00:00
2f835e0f74 Merge pull request 'change version to own github version' (#18) from profilarr-script into dev
Reviewed-on: #18
2025-07-22 15:26:39 +02:00
620dbd7bcc change version to own github version 2025-07-22 13:26:23 +00:00
b2f703d985 Merge pull request 'chanege execstart line' (#17) from profilarr-script into dev
Reviewed-on: #17
2025-07-21 16:11:20 +02:00
38c3c5b0c7 chanege execstart line 2025-07-21 16:11:06 +02:00
8c90128f9a Merge pull request 'add git as dependency' (#16) from profilarr-script into dev
Reviewed-on: #16
2025-07-21 15:23:57 +02:00
a2b9b1482b add git as dependency 2025-07-21 15:23:45 +02:00
9bb805cb99 Merge pull request 'fix service code' (#15) from profilarr-script into dev
Reviewed-on: #15
2025-07-21 15:19:24 +02:00
d65523e429 fix service code 2025-07-21 15:19:09 +02:00
90e4726a61 Merge pull request 'fix PyYAML version' (#14) from profilarr-script into dev
Reviewed-on: #14
2025-07-21 15:07:51 +02:00
65211e7173 fix PyYAML version 2025-07-21 15:07:38 +02:00
60e56e41bf Merge pull request 'try pip install fix' (#13) from profilarr-script into dev
Reviewed-on: #13
2025-07-21 15:02:17 +02:00
0f5571901f try pip install fix 2025-07-21 15:00:34 +02:00
f15ac48b12 Merge pull request 'Added libyaml-dev and python3-dev to the dependencies for building PyYAML' (#12) from profilarr-script into dev
Reviewed-on: #12
2025-07-21 14:51:27 +02:00
afd8faab62 Added libyaml-dev and python3-dev to the dependencies for building PyYAML 2025-07-21 14:51:14 +02:00
aa6bf06cd7 Merge pull request 'fix mv path' (#11) from profilarr-script into dev
Reviewed-on: #11
2025-07-21 14:45:45 +02:00
aed40090ef fix mv path 2025-07-21 14:45:06 +02:00
0c58e5628e Merge pull request 'fixed both script changed pip env to uv' (#10) from profilarr-script into dev
Reviewed-on: #10
2025-07-21 14:30:33 +02:00
2c61e49140 fixed both script changed pip env to uv 2025-07-21 14:30:16 +02:00
9ddda8dcf8 Merge pull request 'fix install url' (#9) from profilarr-script into dev
Reviewed-on: #9
2025-07-21 14:04:36 +02:00
e2b9ac687f fix install url 2025-07-21 14:04:19 +02:00
964f99400a Merge pull request 'fixed both sh files' (#8) from profilarr-script into dev
Reviewed-on: #8
2025-07-21 13:59:04 +02:00
a02dc96e87 fixed both sh files 2025-07-21 13:58:37 +02:00
3 changed files with 339 additions and 186 deletions

View File

@ -1,10 +1,3 @@
# proxmox-ve-install-scripts
huntarr:
`bash -c "$(curl -fsSL https://git.bila.li/Proxmox/proxmox-ve-install-scripts/raw/branch/dev/ct/huntarr.sh)"`
# Proxmox VE Install Scripts
A collection of installation scripts for Proxmox VE containers.
## Installation Commands
@ -17,28 +10,10 @@ Create a new Huntarr LXC container:
bash -c "$(curl -fsSL https://git.bila.li/Proxmox/proxmox-ve-install-scripts/raw/branch/dev/ct/huntarr.sh)"
```
Install Huntarr in an existing container:
### Profilarr
Create a new Profilarr LXC container:
```bash
bash -c "$(curl -fsSL https://git.bila.li/Proxmox/proxmox-ve-install-scripts/raw/branch/dev/install/huntarr-install.sh)"
bash -c "$(curl -fsSL https://git.bila.li/Proxmox/proxmox-ve-install-scripts/raw/branch/dev/ct/profilarr.sh)"
```
### Custom Options
You can customize the LXC creation with environment variables:
```bash
var_cpu=4 var_ram=4096 var_disk=16 HUNTARR_VERSION=6.2 bash -c "$(curl -fsSL https://git.bila.li/Proxmox/proxmox-ve-install-scripts/raw/branch/dev/lxc/huntarr.sh)"
```
#### Available Options:
- var_cpu: Number of CPU cores
- var_ram: RAM in MB
- var_disk: Disk size in GB
- var_os: Operating system (debian, ubuntu)
- var_version: OS version (12, 11, 22.04, etc.)
- HUNTARR_VERSION: Version of Huntarr to install
Tag creator:
https://patorjk.com/software/taag/#p=display&f=Slant&t=Huntarr

View File

@ -1,104 +1,139 @@
#!/usr/bin/env bash
source <(curl -fsSL https://git.bila.li/Proxmox/proxmox-ve-install-scripts/raw/branch/dev/misc/build.func)
# Copyright (c) 2021-2025 community-scripts ORG
# Author: GitHub Copilot
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/Dictionarry-Hub/profilarr
# Import Functions and Setup
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
# App Default Values
APP="profilarr"
var_tags="${var_tags:-arr}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-2048}"
var_disk="${var_disk:-8}"
var_os="${var_os:-debian}"
var_version="${var_version:-12}"
var_unprivileged="${var_unprivileged:-1}"
header_info "$APP"
variables
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
APPLICATION="profilarr"
function update_script() {
header_info
check_container_storage
check_container_resources
msg_info "Installing Dependencies"
$STD apt-get install -y \
curl \
wget \
git \
unzip \
build-essential \
python3 \
python3-pip \
python3-venv \
ca-certificates \
gnupg
msg_ok "Installed Dependencies"
# Check if installation is present
if [[ ! -d /opt/${APP}/backend ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
setup_uv
# Crawling the new version and checking whether an update is required
RELEASE=$(curl -fsSL https://api.github.com/repos/BiluliB/profilarr/releases/latest | grep "tag_name" | cut -d'"' -f4)
if [[ -z "$RELEASE" ]]; then
msg_error "Failed to fetch latest release version"
exit 1
fi
if [[ -f /opt/${APP}_version.txt ]] && [[ "${RELEASE}" == "$(cat /opt/${APP}_version.txt)" ]]; then
msg_ok "No update required. ${APP} is already at ${RELEASE}"
exit
fi
msg_info "Installing Node.js"
$STD mkdir -p /etc/apt/keyrings
$STD curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
$STD echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
$STD apt-get update
$STD apt-get install -y nodejs
msg_ok "Installed Node.js"
# Stopping Services
msg_info "Stopping $APP"
systemctl stop ${APP}
msg_ok "Stopped $APP"
msg_info "Setup ${APPLICATION}"
RELEASE=$(curl -fsSL https://api.github.com/repos/Dictionarry-Hub/profilarr/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4)}')
temp_file=$(mktemp)
$STD curl -fsSL -o "$temp_file" "https://github.com/Dictionarry-Hub/profilarr/archive/refs/tags/v${RELEASE}.zip"
cd /tmp
$STD unzip -q "$temp_file"
$STD mkdir -p /opt/${APPLICATION}
$STD mkdir -p /opt/${APPLICATION}_config
$STD mv "profilarr-${RELEASE}/backend" /opt/${APPLICATION}/
$STD mv "profilarr-${RELEASE}/frontend" /opt/${APPLICATION}/
$STD chown -R root:root /opt/${APPLICATION}
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
msg_ok "Setup ${APPLICATION}"
# Creating Backup
msg_info "Creating Backup"
if ls /opt/"${APP}"_backup_*.tar.gz &>/dev/null; then
rm -f /opt/"${APP}"_backup_*.tar.gz
msg_info "Removed previous backup"
fi
tar -czf "/opt/${APP}_backup_$(date +%F).tar.gz" /opt/${APP} /opt/${APP}_config
msg_ok "Backup Created"
msg_info "Setting up Python Virtual Environment"
$STD python3 -m venv /opt/${APPLICATION}/venv
$STD /opt/${APPLICATION}/venv/bin/pip install --upgrade pip
cd /opt/${APPLICATION}/backend
$STD /opt/${APPLICATION}/venv/bin/pip install -r requirements.txt
$STD /opt/${APPLICATION}/venv/bin/pip install gunicorn
msg_ok "Setup Python Environment"
# Execute Update
msg_info "Updating $APP to ${RELEASE}"
temp_file=$(mktemp)
curl -fsSL -o "$temp_file" "https://github.com/BiluliB/profilarr/archive/refs/tags/${RELEASE}.zip"
unzip -q -o "$temp_file" -d /tmp
msg_info "Building Frontend"
cd /opt/${APPLICATION}/frontend
$STD npm install
$STD npm run build
$STD mkdir -p /opt/${APPLICATION}/backend/app/static
$STD cp -r dist/* /opt/${APPLICATION}/backend/app/static/
msg_ok "Built Frontend"
# Find the actual extracted directory name
EXTRACTED_DIR=$(find /tmp -maxdepth 1 -name "profilarr-*" -type d | head -n1)
if [[ -z "$EXTRACTED_DIR" ]]; then
msg_error "Failed to find extracted directory"
exit 1
fi
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/${APPLICATION}.service
[Unit]
Description=Profilarr Profile Manager
After=network.target
rm -rf /opt/${APP}/backend /opt/${APP}/frontend
mv "${EXTRACTED_DIR}/backend" /opt/${APP}/
mv "${EXTRACTED_DIR}/frontend" /opt/${APP}/
[Service]
Type=simple
User=root
WorkingDirectory=/opt/${APPLICATION}/backend
Environment=PATH=/opt/${APPLICATION}/venv/bin
Environment=CONFIG_PATH=/opt/${APPLICATION}_config
ExecStart=/opt/${APPLICATION}/venv/bin/gunicorn --bind 0.0.0.0:6868 --workers 2 --timeout 120 app.main:create_app()
Restart=always
RestartSec=10
# Update Python dependencies
msg_info "Updating Python dependencies"
cd /opt/${APP}/backend || exit
[Install]
WantedBy=multi-user.target
EOF
# Create a temporary requirements file excluding the incompatible PyYAML version
temp_req_file=$(mktemp)
grep -v "^PyYAML" requirements.txt >"$temp_req_file"
$STD systemctl daemon-reload
$STD systemctl enable ${APPLICATION}.service
$STD systemctl start ${APPLICATION}.service
msg_ok "Created Service"
if [[ -f "/opt/${APP}/.requirements_checksum" ]]; then
CURRENT_CHECKSUM=$(md5sum "$temp_req_file" | awk '{print $1}')
STORED_CHECKSUM=$(cat /opt/${APP}/.requirements_checksum)
if [[ "$CURRENT_CHECKSUM" != "$STORED_CHECKSUM" ]]; then
msg_info "Requirements have changed. Performing full upgrade."
# Ensure compatible PyYAML is installed
$STD uv pip install --python /opt/${APP}/venv/bin/python "PyYAML>=6.0"
$STD uv pip install -r "$temp_req_file" --python /opt/${APP}/venv/bin/python
else
msg_info "Requirements unchanged. Verifying installation."
$STD uv pip install -r "$temp_req_file" --python /opt/${APP}/venv/bin/python
fi
else
# Ensure compatible PyYAML is installed
$STD uv pip install --python /opt/${APP}/venv/bin/python "PyYAML>=6.0"
$STD uv pip install -r "$temp_req_file" --python /opt/${APP}/venv/bin/python
fi
md5sum "$temp_req_file" | awk '{print $1}' >/opt/${APP}/.requirements_checksum
rm -f "$temp_req_file"
msg_ok "Updated Python dependencies"
motd_ssh
customize
# Build frontend
msg_info "Building Frontend"
cd /opt/${APP}/frontend || exit
npm install
npm run build
# Ensure the static directory exists before copying
mkdir -p /opt/${APP}/backend/app/static/
cp -r dist/* /opt/${APP}/backend/app/static/
msg_ok "Built Frontend"
msg_info "Cleaning up"
rm -f "$temp_file"
rm -rf "/tmp/profilarr-${RELEASE}"
$STD apt-get -y autoremove
$STD apt-get -y autoclean
msg_ok "Cleaned"
# Starting Services
msg_info "Starting $APP"
systemctl start ${APP}
msg_ok "Started $APP"
# Cleaning up
msg_info "Cleaning Up"
rm -f "$temp_file"
rm -rf "$EXTRACTED_DIR"
msg_ok "Cleanup Completed"
# Last Action
echo "${RELEASE}" >/opt/${APP}_version.txt
msg_ok "Updated $APP to v${RELEASE}"
exit
}
start
build_container
description
msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:6868${CL}"

View File

@ -1,96 +1,239 @@
#!/usr/bin/env bash
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
# Copyright (c) 2021-2025 community-scripts ORG
# Author: GitHub Copilot
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/Dictionarry-Hub/profilarr
# App Default Values
APP="Profilarr"
var_tags="arr;automation"
var_cpu="2"
var_ram="2048"
var_disk="8"
var_os="debian"
var_version="12"
var_unprivileged="1"
header_info "$APP"
variables
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
function update_script() {
header_info
check_container_storage
check_container_resources
APPLICATION="profilarr"
# Check if installation is present
if [[ ! -d /opt/${APP}/backend ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
msg_info "Installing Dependencies"
$STD apt-get install -y \
unzip \
build-essential \
libyaml-dev \
python3-dev \
git
msg_ok "Installed Dependencies"
# Crawling the new version and checking whether an update is required
RELEASE=$(curl -fsSL https://api.github.com/repos/Dictionarry-Hub/profilarr/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4)}')
if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then
# Stopping Services
msg_info "Stopping $APP"
systemctl stop profilarr
msg_ok "Stopped $APP"
msg_info "Installing Python"
$STD apt-get install -y \
python3 \
python3-venv
msg_ok "Installed Python"
# Creating Backup
msg_info "Creating Backup"
tar -czf "/opt/${APP}_backup_$(date +%F).tar.gz" /opt/${APP} /opt/${APP}_config
msg_ok "Backup Created"
msg_info "Setup uv"
setup_uv
msg_ok "Setup uv"
# Execute Update
msg_info "Updating $APP to v${RELEASE}"
temp_file=$(mktemp)
curl -fsSL -o "$temp_file" "https://github.com/Dictionarry-Hub/profilarr/archive/refs/tags/v${RELEASE}.zip"
cd /tmp
unzip -q "$temp_file"
rm -rf /opt/${APP}/backend /opt/${APP}/frontend
mv "profilarr-${RELEASE}/backend" /opt/${APP}/
mv "profilarr-${RELEASE}/frontend" /opt/${APP}/
msg_info "Installing Node.js"
NODE_VERSION="20" install_node_and_modules
msg_ok "Installed Node.js"
# Update Python dependencies
cd /opt/${APP}/backend
/opt/${APP}/venv/bin/pip install -r requirements.txt
msg_info "Setup ${APPLICATION}"
RELEASE=$(curl -fsSL https://api.github.com/repos/BiluliB/profilarr/releases/latest | grep "tag_name" | cut -d'"' -f4)
if [[ -z "$RELEASE" ]]; then
msg_error "Failed to fetch latest release version"
exit 1
fi
temp_file=$(mktemp)
$STD curl -fsSL -o "$temp_file" "https://github.com/BiluliB/profilarr/archive/refs/tags/${RELEASE}.zip"
$STD unzip -q "$temp_file" -d /tmp
$STD mkdir -p /opt/${APPLICATION}
$STD mkdir -p /opt/${APPLICATION}_config
# Build frontend
cd /opt/${APP}/frontend
npm install
npm run build
cp -r dist/* /opt/${APP}/backend/app/static/
# Find the actual extracted directory name
EXTRACTED_DIR=$(find /tmp -maxdepth 1 -name "profilarr-*" -type d | head -n1)
if [[ -z "$EXTRACTED_DIR" ]]; then
msg_error "Failed to find extracted directory"
exit 1
fi
msg_ok "Updated $APP to v${RELEASE}"
$STD mv "${EXTRACTED_DIR}/backend" /opt/${APPLICATION}/
$STD mv "${EXTRACTED_DIR}/frontend" /opt/${APPLICATION}/
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
$STD uv venv /opt/${APPLICATION}/venv
# Starting Services
msg_info "Starting $APP"
systemctl start profilarr
msg_ok "Started $APP"
# Install compatible PyYAML first, then exclude it from requirements
$STD uv pip install --python /opt/${APPLICATION}/venv/bin/python "PyYAML>=6.0"
# Cleaning up
msg_info "Cleaning Up"
rm -f "$temp_file"
rm -rf "/tmp/profilarr-${RELEASE}"
msg_ok "Cleanup Completed"
# Create modified requirements file
temp_req_file=$(mktemp)
grep -v "^PyYAML" /opt/${APPLICATION}/backend/requirements.txt >"$temp_req_file"
echo "PyYAML>=6.0" >>"$temp_req_file"
# Last Action
echo "${RELEASE}" >/opt/${APP}_version.txt
msg_ok "Update Successful"
$STD uv pip install --python /opt/${APPLICATION}/venv/bin/python -r "$temp_req_file"
$STD uv pip install --python /opt/${APPLICATION}/venv/bin/python gunicorn
# Store the modified requirements checksum for future updates
md5sum "$temp_req_file" | awk '{print $1}' >/opt/${APPLICATION}/.requirements_checksum
rm -f "$temp_req_file"
msg_ok "Setup ${APPLICATION}"
msg_info "Building Frontend"
cd /opt/${APPLICATION}/frontend
$STD npm install
$STD npm run build
$STD mkdir -p /opt/${APPLICATION}/backend/app/static
$STD cp -r dist/* /opt/${APPLICATION}/backend/app/static/
msg_ok "Built Frontend"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/${APPLICATION}.service
[Unit]
Description=Profilarr Profile Manager
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/opt/${APPLICATION}/backend
Environment=PATH=/opt/${APPLICATION}/venv/bin:/usr/local/bin:/usr/bin:/bin
Environment=CONFIG_PATH=/opt/${APPLICATION}_config
Environment=PYTHONPATH=/opt/${APPLICATION}/backend
Environment=GIT_PYTHON_REFRESH=quiet
ExecStart=/opt/${APPLICATION}/venv/bin/python -m gunicorn --bind 0.0.0.0:6868 --workers 2 --timeout 120 --pythonpath /opt/${APPLICATION}/backend "app.main:create_app()"
Restart=always
RestartSec=10
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target
EOF
$STD systemctl daemon-reload
# Test the application manually first
msg_info "Testing Application"
cd /opt/${APPLICATION}/backend
# Check if the main module exists and is importable
if ! /opt/${APPLICATION}/venv/bin/python -c "
import sys
import os
sys.path.insert(0, '/opt/${APPLICATION}/backend')
os.environ['GIT_PYTHON_REFRESH'] = 'quiet'
try:
import app.main
print('✓ app.main imported successfully')
except ImportError as e:
print(f'✗ Import error: {e}')
sys.exit(1)
except Exception as e:
print(f'✗ Other error: {e}')
sys.exit(1)
"; then
msg_error "Application import test failed"
# Try alternative approaches
msg_info "Trying alternative startup methods"
# Check if there's a direct run.py or main.py
if [[ -f "/opt/${APPLICATION}/backend/run.py" ]]; then
cat <<EOF >/etc/systemd/system/${APPLICATION}.service
[Unit]
Description=Profilarr Profile Manager
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/opt/${APPLICATION}/backend
Environment=PATH=/opt/${APPLICATION}/venv/bin:/usr/local/bin:/usr/bin:/bin
Environment=CONFIG_PATH=/opt/${APPLICATION}_config
Environment=GIT_PYTHON_REFRESH=quiet
ExecStart=/opt/${APPLICATION}/venv/bin/python run.py
Restart=always
RestartSec=10
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target
EOF
elif [[ -f "/opt/${APPLICATION}/backend/main.py" ]]; then
cat <<EOF >/etc/systemd/system/${APPLICATION}.service
[Unit]
Description=Profilarr Profile Manager
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/opt/${APPLICATION}/backend
Environment=PATH=/opt/${APPLICATION}/venv/bin:/usr/local/bin:/usr/bin:/bin
Environment=CONFIG_PATH=/opt/${APPLICATION}_config
Environment=GIT_PYTHON_REFRESH=quiet
ExecStart=/opt/${APPLICATION}/venv/bin/python main.py
Restart=always
RestartSec=10
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target
EOF
else
msg_ok "No update required. ${APP} is already at v${RELEASE}"
# Fallback to Flask development server
cat <<EOF >/etc/systemd/system/${APPLICATION}.service
[Unit]
Description=Profilarr Profile Manager
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/opt/${APPLICATION}/backend
Environment=PATH=/opt/${APPLICATION}/venv/bin:/usr/local/bin:/usr/bin:/bin
Environment=CONFIG_PATH=/opt/${APPLICATION}_config
Environment=GIT_PYTHON_REFRESH=quiet
Environment=FLASK_APP=app.main:create_app
Environment=FLASK_RUN_HOST=0.0.0.0
Environment=FLASK_RUN_PORT=6868
ExecStart=/opt/${APPLICATION}/venv/bin/python -m flask run
Restart=always
RestartSec=10
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target
EOF
fi
exit
}
start
build_container
description
$STD systemctl daemon-reload
fi
msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:6868${CL}"
systemctl enable ${APPLICATION}
systemctl start ${APPLICATION}
# Wait and check status
sleep 5
if systemctl is-active --quiet ${APPLICATION}; then
msg_ok "Service started successfully"
else
msg_error "Service failed to start. Checking logs..."
journalctl -u ${APPLICATION} --no-pager -n 20
exit 1
fi
msg_ok "Created Service"
motd_ssh
customize
msg_info "Cleaning up"
rm -f "$temp_file"
rm -rf "$EXTRACTED_DIR"
$STD apt-get -y autoremove
$STD apt-get -y autoclean
msg_ok "Cleaned"