mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-06-30 02:57:38 +00:00
some fixes
This commit is contained in:
@ -21,6 +21,8 @@ PYTHON_VERSION="3.12" setup_uv
|
||||
|
||||
msg_info "Setting up Virtual Environment"
|
||||
mkdir -p /opt/esphome
|
||||
mkdir -p /root/config
|
||||
cd /opt/esphome
|
||||
$STD uv venv /opt/esphome/.venv
|
||||
$STD uv pip install esphome tornado esptool
|
||||
msg_ok "Setup and Installed ESPHome"
|
||||
|
@ -44,17 +44,15 @@ msg_ok "Installed PHP Dependencies"
|
||||
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
|
||||
msg_info "Installing Python Dependencies"
|
||||
source /opt/pialert/.venv/bin/activate
|
||||
msg_info "Installing Pi.Alert"
|
||||
curl -fsSL https://github.com/leiweibau/Pi.Alert/raw/main/tar/pialert_latest.tar | tar xvf - -C /opt >/dev/null 2>&1
|
||||
rm -rf /var/lib/ieee-data /var/www/html/index.html
|
||||
cd /opt/pialert
|
||||
$STD uv venv /opt/pialert/.venv
|
||||
$STD uv pip install mac-vendor-lookup
|
||||
$STD uv pip install fritzconnection
|
||||
$STD uv pip install cryptography
|
||||
$STD uv pip install pyunifi
|
||||
msg_ok "Installed Python Dependencies"
|
||||
|
||||
msg_info "Installing Pi.Alert"
|
||||
curl -fsSL https://github.com/leiweibau/Pi.Alert/raw/main/tar/pialert_latest.tar | tar xvf - -C /opt >/dev/null 2>&1
|
||||
rm -rf /var/lib/ieee-data /var/www/html/index.html
|
||||
sed -i -e 's#^sudo cp -n /usr/share/ieee-data/.* /var/lib/ieee-data/#\# &#' -e '/^sudo mkdir -p 2_backup$/s/^/# /' -e '/^sudo cp \*.txt 2_backup$/s/^/# /' -e '/^sudo cp \*.csv 2_backup$/s/^/# /' /opt/pialert/back/update_vendors.sh
|
||||
mv /var/www/html/index.lighttpd.html /var/www/html/index.lighttpd.html.old
|
||||
ln -s /usr/share/ieee-data/ /var/lib/
|
||||
|
@ -21,8 +21,10 @@ msg_ok "Installed Dependencies"
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
|
||||
msg_info "Setting up Radicale"
|
||||
$STD uv venv /opt/radicale
|
||||
$STD /opt/radicale/bin/uv pip install --upgrade https://github.com/Kozea/Radicale/archive/master.tar.gz
|
||||
mkdir -p /opt/radicale/{users}
|
||||
cd /opt/radicale
|
||||
$STD uv venv /opt/radicale/.venv
|
||||
$STD uv pip install --upgrade https://github.com/Kozea/Radicale/archive/master.tar.gz
|
||||
RNDPASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)
|
||||
$STD htpasswd -c -b -5 /opt/radicale/users admin "$RNDPASS"
|
||||
{
|
||||
@ -35,7 +37,7 @@ msg_ok "Done setting up Radicale"
|
||||
msg_info "Setup Service"
|
||||
cat <<EOF >/opt/radicale/start.sh
|
||||
#!/usr/bin/env bash
|
||||
/opt/radicale/bin/uv run -m radicale --storage-filesystem-folder=/var/lib/radicale/collections --hosts 0.0.0.0:5232 --auth-type htpasswd --auth-htpasswd-filename /opt/radicale/users --auth-htpasswd-encryption sha512
|
||||
uv run -m radicale --storage-filesystem-folder=/var/lib/radicale/collections --hosts 0.0.0.0:5232 --auth-type htpasswd --auth-htpasswd-filename /opt/radicale/users --auth-htpasswd-encryption sha512
|
||||
EOF
|
||||
|
||||
chmod +x /opt/radicale/start.sh
|
||||
|
@ -30,9 +30,9 @@ useradd -d /etc/searxng searxng
|
||||
chown searxng:searxng /usr/local/searxng /etc/searxng
|
||||
$STD git clone https://github.com/searxng/searxng.git /usr/local/searxng/searxng-src
|
||||
cd /usr/local/searxng/
|
||||
$STD uv venv /usr/local/searxng/searx-pyenv
|
||||
$STD /usr/local/searxng/searx-pyenv/bin/uv pip install --upgrade pip setuptools wheel pyyaml
|
||||
$STD /usr/local/searxng/searx-pyenv/bin/uv pip install --use-pep517 --no-build-isolation -e /usr/local/searxng/searxng-src
|
||||
$STD uv venv /usr/local/searxng/.venv
|
||||
$STD uv pip install --upgrade pip setuptools wheel pyyaml
|
||||
$STD uv pip install --no-build-isolation -e /usr/local/searxng/searxng-src
|
||||
|
||||
SECRET_KEY=$(openssl rand -hex 32)
|
||||
cat <<EOF >/etc/searxng/settings.yml
|
||||
|
@ -43,7 +43,7 @@ $STD unzip main.zip
|
||||
mv soularr-main /opt/soularr
|
||||
cd /opt/soularr
|
||||
$STD uv venv /opt/soularr/.venv
|
||||
$STD /opt/soularr/.venv/bin/uv pip install -r requirements.txt
|
||||
$STD uv pip install -r requirements.txt
|
||||
sed -i \
|
||||
-e "\|[Slskd]|,\|host_url|s|yourslskdapikeygoeshere|$SLSKD_API_KEY|" \
|
||||
-e "/host_url/s/slskd/localhost/" \
|
||||
|
@ -33,6 +33,7 @@ rm -f spoolman.zip
|
||||
cd spoolman
|
||||
$STD uv venv /opt/spoolman/.venv
|
||||
$STD uv pip install -r requirements.txt
|
||||
|
||||
curl -fsSL "https://raw.githubusercontent.com/Donkie/Spoolman/master/.env.example" -o ".env"
|
||||
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
|
||||
msg_ok "Installed Spoolman"
|
||||
|
@ -15,7 +15,7 @@ network_check
|
||||
update_os
|
||||
|
||||
NODE_VERSION="22" NODE_MODULE="npm@latest,yarn@latest" install_node_and_modules
|
||||
setup_uv
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
fetch_and_deploy_gh_release "CrazyWolf13/streamlink-webui"
|
||||
|
||||
msg_info "Setup ${APPLICATION}"
|
||||
|
@ -15,7 +15,7 @@ network_check
|
||||
update_os
|
||||
|
||||
msg_info "Installing Dependencies (Patience)"
|
||||
$STD apt-get install -y --no-install-recommends \
|
||||
$STD apt-get install -y \
|
||||
build-essential \
|
||||
libpq-dev \
|
||||
libmagic-dev \
|
||||
|
@ -20,13 +20,6 @@ msg_ok "Installed Dependencies"
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
NODE_VERSION="22" NODE_MODULE="yarn@latest" install_node_and_modules
|
||||
|
||||
msg_info "Setup Platformio"
|
||||
mkdir -p /opt/tasmocompiler
|
||||
cd /opt/tasmocompiler
|
||||
$STD uv venv /opt/tasmocompiler/.venv
|
||||
$STD uv pip install platformio
|
||||
msg_ok "Setup Platformio"
|
||||
|
||||
msg_info "Setup TasmoCompiler"
|
||||
mkdir /tmp/Tasmota
|
||||
RELEASE=$(curl -fsSL https://api.github.com/repos/benzino77/tasmocompiler/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||
@ -35,6 +28,8 @@ cd /tmp
|
||||
tar xzf /tmp/v${RELEASE}.tar.gz
|
||||
mv tasmocompiler-${RELEASE}/ /opt/tasmocompiler/
|
||||
cd /opt/tasmocompiler
|
||||
$STD uv venv /opt/tasmocompiler/.venv
|
||||
$STD uv pip install platformio
|
||||
$STD yarn install
|
||||
export NODE_OPTIONS=--openssl-legacy-provider
|
||||
$STD npm i
|
||||
|
@ -21,7 +21,8 @@ $STD apt-get install -y \
|
||||
build-essential \
|
||||
git \
|
||||
make \
|
||||
ca-certificates
|
||||
ca-certificates \
|
||||
jq
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
NODE_VERSION="22" NODE_MODULE="pnpm@$(curl -s https://raw.githubusercontent.com/msgbyte/tianji/master/package.json | jq -r '.packageManager | split("@")[1]')" install_node_and_modules
|
||||
|
@ -14,7 +14,7 @@ network_check
|
||||
update_os
|
||||
|
||||
msg_info "Installing Dependencies (Patience)"
|
||||
$STD apt-get install -y ffmpeg
|
||||
$STD apt-get install -y ffmpeg gcc
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
|
@ -38,14 +38,14 @@ curl -fsSL "https://github.com/wger-project/wger/archive/refs/tags/$RELEASE.tar.
|
||||
tar xzf $RELEASE.tar.gz
|
||||
mv wger-$RELEASE /home/wger/src
|
||||
cd /home/wger/src
|
||||
$STD /home/wger/.venv/bin/wger create-settings --database-path /home/wger/db/database.sqlite
|
||||
$STD uv venv /home/wger/.venv
|
||||
$STD uv pip install -r requirements_prod.txt
|
||||
$STD uv pip install -e .
|
||||
$STD /home/wger/.venv/bin/wger create-settings --database-path /home/wger/db/database.sqlite
|
||||
sed -i "s#home/wger/src/media#home/wger/media#g" /home/wger/src/settings.py
|
||||
sed -i "/MEDIA_ROOT = '\/home\/wger\/media'/a STATIC_ROOT = '/home/wger/static'" /home/wger/src/settings.py
|
||||
$STD /home/wger/.venv/bin/wger bootstrap
|
||||
$STD /home/wger/.venv/bin/uv run python manage.py collectstatic
|
||||
$STD uv run python manage.py collectstatic
|
||||
echo "${RELEASE}" >/opt/wger_version.txt
|
||||
msg_ok "Finished setting up wger"
|
||||
|
||||
|
Reference in New Issue
Block a user