more migs

This commit is contained in:
CanbiZ 2025-06-05 12:56:22 +02:00
parent 82a0b1ff60
commit 2664b358c6
5 changed files with 21 additions and 12 deletions

View File

@ -36,9 +36,12 @@ cd /opt/metube/ui
$STD npm install $STD npm install
$STD node_modules/.bin/ng build $STD node_modules/.bin/ng build
cd /opt/metube cd /opt/metube
$STD uv venv .venv $STD uv venv /opt/motioneye/.venv
$STD .venv/bin/uv pip install pipenv $STD /opt/metube/.venv/bin/python -m ensurepip --upgrade
$STD .venv/bin/pipenv install $STD /opt/metube/.venv/bin/python -m pip install --upgrade pip
$STD /opt/metube/.venv/bin/python -m pip install pipenv
$STD /opt/metube/.venv/bin/pipenv install
mkdir -p /opt/metube_downloads /opt/metube_downloads/.metube /opt/metube_downloads/music /opt/metube_downloads/videos mkdir -p /opt/metube_downloads /opt/metube_downloads/.metube /opt/metube_downloads/music /opt/metube_downloads/videos
cat <<EOF >/opt/metube/.env cat <<EOF >/opt/metube/.env
DOWNLOAD_DIR=/opt/metube_downloads DOWNLOAD_DIR=/opt/metube_downloads

View File

@ -33,7 +33,9 @@ msg_ok "Installed FFmpeg"
msg_info "Installing MotionEye" msg_info "Installing MotionEye"
$STD apt-get update $STD apt-get update
$STD uv venv /opt/motioneye/.venv $STD uv venv /opt/motioneye/.venv
$STD /opt/motioneye/.venv/bin/uv pip install git+https://github.com/motioneye-project/motioneye.git@dev $STD /opt/motioneye/.venv/bin/python -m ensurepip --upgrade
$STD /opt/motioneye/.venv/bin/python -m pip install --upgrade pip
$STD /opt/motioneye/.venv/bin/python -m pip install git+https://github.com/motioneye-project/motioneye.git@dev
mkdir -p /etc/motioneye mkdir -p /etc/motioneye
chown -R root:root /etc/motioneye chown -R root:root /etc/motioneye

View File

@ -49,10 +49,9 @@ curl -fsSL https://github.com/leiweibau/Pi.Alert/raw/main/tar/pialert_latest.tar
rm -rf /var/lib/ieee-data /var/www/html/index.html rm -rf /var/lib/ieee-data /var/www/html/index.html
cd /opt/pialert cd /opt/pialert
$STD uv venv /opt/pialert/.venv $STD uv venv /opt/pialert/.venv
$STD uv pip install mac-vendor-lookup $STD /opt/pialert/.venv/bin/python -m ensurepip --upgrade
$STD uv pip install fritzconnection $STD /opt/pialert/.venv/bin/python -m pip install --upgrade pip
$STD uv pip install cryptography $STD /opt/pialert/.venv/bin/python -m pip install mac-vendor-lookup fritzconnection cryptography pyunifi
$STD uv pip install pyunifi
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 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 mv /var/www/html/index.lighttpd.html /var/www/html/index.lighttpd.html.old
ln -s /usr/share/ieee-data/ /var/lib/ ln -s /usr/share/ieee-data/ /var/lib/

View File

@ -37,7 +37,9 @@ msg_info "Installing Unmanic"
mkdir -p /opt/unmanic mkdir -p /opt/unmanic
cd /opt/unmanic cd /opt/unmanic
$STD uv venv /opt/unmanic/.venv $STD uv venv /opt/unmanic/.venv
$STD uv pip install unmanic $STD /opt/unmanic/.venv/bin/python -m ensurepip --upgrade
$STD /opt/unmanic/.venv/bin/python -m pip install --upgrade pip
$STD /opt/unmanic/.venv/bin/python -m pip install unmanic
sed -i -e 's/^sgx:x:104:$/render:x:104:root/' -e 's/^render:x:106:root$/sgx:x:106:/' /etc/group sed -i -e 's/^sgx:x:104:$/render:x:104:root/' -e 's/^render:x:106:root$/sgx:x:106:/' /etc/group
msg_ok "Installed Unmanic" msg_ok "Installed Unmanic"

View File

@ -40,12 +40,15 @@ mv wger-$RELEASE /home/wger/src
cd /home/wger/src cd /home/wger/src
$STD /home/wger/.venv/bin/wger create-settings --database-path /home/wger/db/database.sqlite $STD /home/wger/.venv/bin/wger create-settings --database-path /home/wger/db/database.sqlite
$STD uv venv /home/wger/.venv $STD uv venv /home/wger/.venv
$STD uv pip install -r requirements_prod.txt $STD /home/wger/.venv/bin/python -m ensurepip --upgrade
$STD uv pip install -e . $STD /home/wger/.venv/bin/python -m pip install --upgrade pip
$STD /home/wger/.venv/bin/python -m pip install -r requirements_prod.txt
$STD /home/wger/.venv/bin/python -m pip install -e .
sed -i "s#home/wger/src/media#home/wger/media#g" /home/wger/src/settings.py 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 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/wger bootstrap
$STD uv run python manage.py collectstatic cd /home/wger/src/
$STD /home/wger/.venv/bin/python -m manage.py collectstatic
echo "${RELEASE}" >/opt/wger_version.txt echo "${RELEASE}" >/opt/wger_version.txt
msg_ok "Finished setting up wger" msg_ok "Finished setting up wger"