mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-10-01 14:39:39 +00:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
61a445b8d9 |
+3
-2
@@ -54,8 +54,9 @@ function update_script() {
|
|||||||
$STD uv venv --clear .venv
|
$STD uv venv --clear .venv
|
||||||
$STD .venv/bin/python -m ensurepip --upgrade
|
$STD .venv/bin/python -m ensurepip --upgrade
|
||||||
fi
|
fi
|
||||||
$STD uv pip install --python .venv/bin/python -r requirements.txt
|
$STD .venv/bin/python -m pip install --upgrade pip
|
||||||
$STD uv pip install --python .venv/bin/python 'djangorestframework<3.15'
|
$STD .venv/bin/python -m pip install -r requirements.txt
|
||||||
|
$STD .venv/bin/python -m pip install 'djangorestframework<3.15'
|
||||||
$STD .venv/bin/python -m manage collectstatic --noinput
|
$STD .venv/bin/python -m manage collectstatic --noinput
|
||||||
$STD .venv/bin/python -m manage migrate
|
$STD .venv/bin/python -m manage migrate
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ function update_script() {
|
|||||||
fi
|
fi
|
||||||
msg_info "Updating Apache CouchDB"
|
msg_info "Updating Apache CouchDB"
|
||||||
apt_update_safe
|
apt_update_safe
|
||||||
$STD apt-get install -y --only-upgrade couchdb
|
$STD apt install -y --only-upgrade couchdb
|
||||||
msg_ok "Updated Apache CouchDB"
|
msg_ok "Updated Apache CouchDB"
|
||||||
msg_ok "Updated successfully!"
|
msg_ok "Updated successfully!"
|
||||||
exit
|
exit
|
||||||
|
|||||||
+1
-1
@@ -31,7 +31,7 @@ function update_script() {
|
|||||||
fi
|
fi
|
||||||
msg_info "Updating ${APP} LXC"
|
msg_info "Updating ${APP} LXC"
|
||||||
apt_update_safe
|
apt_update_safe
|
||||||
$STD apt-get -y upgrade
|
$STD apt -y upgrade
|
||||||
msg_ok "Updated ${APP} LXC"
|
msg_ok "Updated ${APP} LXC"
|
||||||
msg_ok "Updated successfully!"
|
msg_ok "Updated successfully!"
|
||||||
exit
|
exit
|
||||||
|
|||||||
@@ -56,11 +56,12 @@ function update_script() {
|
|||||||
rm -rf "$VENV_PATH"
|
rm -rf "$VENV_PATH"
|
||||||
$STD uv venv --clear "$VENV_PATH"
|
$STD uv venv --clear "$VENV_PATH"
|
||||||
$STD "$VENV_PATH/bin/python" -m ensurepip --upgrade
|
$STD "$VENV_PATH/bin/python" -m ensurepip --upgrade
|
||||||
$STD uv pip install --python "$VENV_PATH/bin/python" changedetection.io playwright
|
$STD "$VENV_PATH/bin/python" -m pip install --upgrade pip
|
||||||
|
$STD "$VENV_PATH/bin/python" -m pip install changedetection.io playwright
|
||||||
msg_ok "Migrated to uv/venv"
|
msg_ok "Migrated to uv/venv"
|
||||||
else
|
else
|
||||||
msg_info "Updating ${APP}"
|
msg_info "Updating ${APP}"
|
||||||
$STD uv pip install --python "$VENV_PATH/bin/python" --upgrade changedetection.io playwright
|
$STD "$VENV_PATH/bin/python" -m pip install --upgrade changedetection.io playwright
|
||||||
msg_ok "Updated ${APP}"
|
msg_ok "Updated ${APP}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ function update_script() {
|
|||||||
fi
|
fi
|
||||||
msg_info "Updating ${APP} LXC"
|
msg_info "Updating ${APP} LXC"
|
||||||
apt_update_safe
|
apt_update_safe
|
||||||
$STD apt-get -y upgrade
|
$STD apt -y upgrade
|
||||||
msg_ok "Updated successfully!"
|
msg_ok "Updated successfully!"
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -47,7 +47,7 @@ function update_script() {
|
|||||||
msg_ok "Backup created"
|
msg_ok "Backup created"
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y pkg-config
|
$STD apt install -y pkg-config
|
||||||
$STD sudo -u frappe bash -c 'export PATH="$HOME/.local/bin:/usr/local/bin:$PATH"; cd /opt/frappe-bench && uv python install 3.14'
|
$STD sudo -u frappe bash -c 'export PATH="$HOME/.local/bin:/usr/local/bin:$PATH"; cd /opt/frappe-bench && uv python install 3.14'
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
|
|||||||
+3
-2
@@ -48,12 +48,13 @@ function update_script() {
|
|||||||
cd /opt/esphome
|
cd /opt/esphome
|
||||||
$STD uv venv --clear "$VENV_PATH"
|
$STD uv venv --clear "$VENV_PATH"
|
||||||
$STD "$VENV_PATH/bin/python" -m ensurepip --upgrade
|
$STD "$VENV_PATH/bin/python" -m ensurepip --upgrade
|
||||||
$STD uv pip install --python "$VENV_PATH/bin/python" esphome esphome-device-builder esptool
|
$STD "$VENV_PATH/bin/python" -m pip install --upgrade pip
|
||||||
|
$STD "$VENV_PATH/bin/python" -m pip install esphome esphome-device-builder esptool
|
||||||
msg_ok "Migrated to uv/venv"
|
msg_ok "Migrated to uv/venv"
|
||||||
else
|
else
|
||||||
msg_info "Updating ESPHome Device Builder"
|
msg_info "Updating ESPHome Device Builder"
|
||||||
PYTHON_VERSION="3.12" setup_uv
|
PYTHON_VERSION="3.12" setup_uv
|
||||||
$STD uv pip install --python "$VENV_PATH/bin/python" --upgrade esphome esphome-device-builder esptool
|
$STD "$VENV_PATH/bin/python" -m pip install --upgrade esphome esphome-device-builder esptool
|
||||||
msg_ok "Updated ESPHome Device Builder"
|
msg_ok "Updated ESPHome Device Builder"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -56,7 +56,8 @@ function update_script() {
|
|||||||
cd /opt/fireshare
|
cd /opt/fireshare
|
||||||
$STD uv venv --clear
|
$STD uv venv --clear
|
||||||
$STD .venv/bin/python -m ensurepip --upgrade
|
$STD .venv/bin/python -m ensurepip --upgrade
|
||||||
$STD uv pip install --python .venv/bin/python --no-cache --reinstall app/server
|
$STD .venv/bin/python -m pip install --upgrade --break-system-packages pip
|
||||||
|
$STD .venv/bin/python -m pip install --no-cache-dir --break-system-packages --ignore-installed app/server
|
||||||
cp .venv/bin/fireshare /usr/local/bin/fireshare
|
cp .venv/bin/fireshare /usr/local/bin/fireshare
|
||||||
set -a
|
set -a
|
||||||
source /opt/fireshare/fireshare.env
|
source /opt/fireshare/fireshare.env
|
||||||
|
|||||||
+1
-1
@@ -62,7 +62,7 @@ function update_script() {
|
|||||||
GRAMPS_VERSION=$(/opt/gramps-web/venv/bin/python3 -c "import gramps.version; print('%s%s' % (gramps.version.VERSION_TUPLE[0], gramps.version.VERSION_TUPLE[1]))" 2>/dev/null || echo "60")
|
GRAMPS_VERSION=$(/opt/gramps-web/venv/bin/python3 -c "import gramps.version; print('%s%s' % (gramps.version.VERSION_TUPLE[0], gramps.version.VERSION_TUPLE[1]))" 2>/dev/null || echo "60")
|
||||||
GRAMPS_PLUGINS_DIR="/opt/gramps-web/data/gramps/gramps${GRAMPS_VERSION}/plugins"
|
GRAMPS_PLUGINS_DIR="/opt/gramps-web/data/gramps/gramps${GRAMPS_VERSION}/plugins"
|
||||||
mkdir -p "$GRAMPS_PLUGINS_DIR"
|
mkdir -p "$GRAMPS_PLUGINS_DIR"
|
||||||
$STD wget -q https://github.com/gramps-project/addons/archive/refs/heads/master.zip -O /tmp/gramps-addons.zip
|
curl -fsSL -o /tmp/gramps-addons.zip https://github.com/gramps-project/addons/archive/refs/heads/master.zip
|
||||||
for addon in FilterRules JSON; do
|
for addon in FilterRules JSON; do
|
||||||
unzip -p /tmp/gramps-addons.zip "addons-master/gramps${GRAMPS_VERSION}/download/${addon}.addon.tgz" |
|
unzip -p /tmp/gramps-addons.zip "addons-master/gramps${GRAMPS_VERSION}/download/${addon}.addon.tgz" |
|
||||||
tar -xz -C "$GRAMPS_PLUGINS_DIR"
|
tar -xz -C "$GRAMPS_PLUGINS_DIR"
|
||||||
|
|||||||
@@ -38,12 +38,13 @@ function update_script() {
|
|||||||
cd "$INSTALL_DIR"
|
cd "$INSTALL_DIR"
|
||||||
$STD uv venv --clear .venv
|
$STD uv venv --clear .venv
|
||||||
$STD "$VENV_PYTHON" -m ensurepip --upgrade
|
$STD "$VENV_PYTHON" -m ensurepip --upgrade
|
||||||
$STD uv pip install --python "$VENV_PYTHON" jupyter
|
$STD "$VENV_PYTHON" -m pip install --upgrade pip
|
||||||
|
$STD "$VENV_PYTHON" -m pip install jupyter
|
||||||
msg_ok "Migrated to uv and installed Jupyter"
|
msg_ok "Migrated to uv and installed Jupyter"
|
||||||
else
|
else
|
||||||
PYTHON_VERSION="3.12" setup_uv
|
|
||||||
msg_info "Updating Jupyter"
|
msg_info "Updating Jupyter"
|
||||||
$STD uv pip install --python "$VENV_PYTHON" --upgrade jupyter
|
$STD "$VENV_PYTHON" -m pip install --upgrade pip
|
||||||
|
$STD "$VENV_PYTHON" -m pip install --upgrade jupyter
|
||||||
msg_ok "Jupyter updated"
|
msg_ok "Jupyter updated"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -44,7 +44,7 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Updating packages"
|
msg_info "Updating packages"
|
||||||
apt_update_safe
|
apt_update_safe
|
||||||
$STD apt-get -y upgrade
|
$STD apt -y upgrade
|
||||||
msg_ok "Updated packages"
|
msg_ok "Updated packages"
|
||||||
|
|
||||||
msg_info "Backup old Keycloak"
|
msg_info "Backup old Keycloak"
|
||||||
|
|||||||
+1
-1
@@ -39,7 +39,7 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Updating packages"
|
msg_info "Updating packages"
|
||||||
apt_update_safe
|
apt_update_safe
|
||||||
$STD apt-get dist-upgrade -y
|
$STD apt dist-upgrade -y
|
||||||
ensure_dependencies "inotify-tools"
|
ensure_dependencies "inotify-tools"
|
||||||
msg_ok "Updated packages"
|
msg_ok "Updated packages"
|
||||||
|
|
||||||
|
|||||||
@@ -45,12 +45,13 @@ function update_script() {
|
|||||||
cd /opt/prometheus-pve-exporter
|
cd /opt/prometheus-pve-exporter
|
||||||
$STD uv venv --clear "$PVE_VENV_PATH"
|
$STD uv venv --clear "$PVE_VENV_PATH"
|
||||||
$STD "$PVE_VENV_PATH/bin/python" -m ensurepip --upgrade
|
$STD "$PVE_VENV_PATH/bin/python" -m ensurepip --upgrade
|
||||||
$STD uv pip install --python "$PVE_VENV_PATH/bin/python" prometheus-pve-exporter
|
$STD "$PVE_VENV_PATH/bin/python" -m pip install --upgrade pip
|
||||||
|
$STD "$PVE_VENV_PATH/bin/python" -m pip install prometheus-pve-exporter
|
||||||
msg_ok "Migrated to uv/venv"
|
msg_ok "Migrated to uv/venv"
|
||||||
else
|
else
|
||||||
msg_info "Updating Prometheus Proxmox VE Exporter"
|
msg_info "Updating Prometheus Proxmox VE Exporter"
|
||||||
PYTHON_VERSION="3.12" setup_uv
|
PYTHON_VERSION="3.12" setup_uv
|
||||||
$STD uv pip install --python "$PVE_VENV_PATH/bin/python" --upgrade prometheus-pve-exporter
|
$STD "$PVE_VENV_PATH/bin/python" -m pip install --upgrade prometheus-pve-exporter
|
||||||
msg_ok "Updated Prometheus Proxmox VE Exporter"
|
msg_ok "Updated Prometheus Proxmox VE Exporter"
|
||||||
fi
|
fi
|
||||||
local service_file="/etc/systemd/system/prometheus-pve-exporter.service"
|
local service_file="/etc/systemd/system/prometheus-pve-exporter.service"
|
||||||
|
|||||||
+2
-2
@@ -44,8 +44,8 @@ function update_script() {
|
|||||||
msg_info "Migrating to v4: Removing RabbitMQ"
|
msg_info "Migrating to v4: Removing RabbitMQ"
|
||||||
systemctl stop rabbitmq-server
|
systemctl stop rabbitmq-server
|
||||||
systemctl disable rabbitmq-server
|
systemctl disable rabbitmq-server
|
||||||
$STD apt-get purge -y rabbitmq-server erlang-base
|
$STD apt purge -y rabbitmq-server erlang-base
|
||||||
$STD apt-get autoremove -y
|
$STD apt autoremove -y
|
||||||
msg_ok "Removed RabbitMQ"
|
msg_ok "Removed RabbitMQ"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -109,7 +109,7 @@ function update_script() {
|
|||||||
if [[ -f /etc/angie/http.d/romm.conf ]]; then
|
if [[ -f /etc/angie/http.d/romm.conf ]]; then
|
||||||
if ! grep -q "js_content decode.decodeBase64" /etc/angie/http.d/romm.conf; then
|
if ! grep -q "js_content decode.decodeBase64" /etc/angie/http.d/romm.conf; then
|
||||||
msg_info "Adding missing /decode and /cache locations to Angie config"
|
msg_info "Adding missing /decode and /cache locations to Angie config"
|
||||||
dpkg -l angie-module-njs &>/dev/null || $STD apt-get install -y angie-module-njs
|
dpkg -l angie-module-njs &>/dev/null || $STD apt install -y angie-module-njs
|
||||||
grep -q "ngx_http_js_module.so" /etc/angie/angie.conf || sed -i '1i load_module modules/ngx_http_js_module.so;' /etc/angie/angie.conf
|
grep -q "ngx_http_js_module.so" /etc/angie/angie.conf || sed -i '1i load_module modules/ngx_http_js_module.so;' /etc/angie/angie.conf
|
||||||
mkdir -p /etc/angie/js "${ROMM_BASE}/cache"
|
mkdir -p /etc/angie/js "${ROMM_BASE}/cache"
|
||||||
cat <<'JSEOF' >/etc/angie/js/decode.js
|
cat <<'JSEOF' >/etc/angie/js/decode.js
|
||||||
|
|||||||
+2
-1
@@ -42,7 +42,8 @@ function update_script() {
|
|||||||
cd /opt/scraparr
|
cd /opt/scraparr
|
||||||
$STD uv venv --clear /opt/scraparr/.venv
|
$STD uv venv --clear /opt/scraparr/.venv
|
||||||
$STD /opt/scraparr/.venv/bin/python -m ensurepip --upgrade
|
$STD /opt/scraparr/.venv/bin/python -m ensurepip --upgrade
|
||||||
$STD uv pip install --python /opt/scraparr/.venv/bin/python -r /opt/scraparr/src/scraparr/requirements.txt
|
$STD /opt/scraparr/.venv/bin/python -m pip install --upgrade pip
|
||||||
|
$STD /opt/scraparr/.venv/bin/python -m pip install -r /opt/scraparr/src/scraparr/requirements.txt
|
||||||
chmod -R 755 /opt/scraparr
|
chmod -R 755 /opt/scraparr
|
||||||
msg_ok "Updated Scraparr"
|
msg_ok "Updated Scraparr"
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -31,7 +31,7 @@ function update_script() {
|
|||||||
fi
|
fi
|
||||||
msg_info "Updating ${APP} LXC"
|
msg_info "Updating ${APP} LXC"
|
||||||
apt_update_safe
|
apt_update_safe
|
||||||
$STD apt-get -y upgrade
|
$STD apt -y upgrade
|
||||||
msg_ok "Updated ${APP} LXC"
|
msg_ok "Updated ${APP} LXC"
|
||||||
msg_ok "Updated successfully!"
|
msg_ok "Updated successfully!"
|
||||||
exit
|
exit
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Updating UHF Server"
|
msg_info "Updating UHF Server"
|
||||||
if dpkg -l ffmpeg 2>&1 | grep -q "ii"; then
|
if dpkg -l ffmpeg 2>&1 | grep -q "ii"; then
|
||||||
apt remove ffmpeg -y && apt autoremove -y
|
$STD apt remove -y ffmpeg && $STD apt autoremove -y
|
||||||
fi
|
fi
|
||||||
setup_ffmpeg
|
setup_ffmpeg
|
||||||
fetch_and_deploy_gh_release "comskip" "swapplications/comskip" "prebuild" "latest" "/opt/comskip" "comskip-$(arch_resolve "x64" "arm64")-*.zip"
|
fetch_and_deploy_gh_release "comskip" "swapplications/comskip" "prebuild" "latest" "/opt/comskip" "comskip-$(arch_resolve "x64" "arm64")-*.zip"
|
||||||
|
|||||||
+1
-1
@@ -31,7 +31,7 @@ function update_script() {
|
|||||||
fi
|
fi
|
||||||
msg_info "Updating OS"
|
msg_info "Updating OS"
|
||||||
apt_update_safe
|
apt_update_safe
|
||||||
$STD apt-get -y upgrade
|
$STD apt -y upgrade
|
||||||
msg_ok "Updated OS"
|
msg_ok "Updated OS"
|
||||||
|
|
||||||
msg_info "Updating $APP LXC"
|
msg_info "Updating $APP LXC"
|
||||||
|
|||||||
@@ -60,8 +60,9 @@ cd /opt/adventurelog/backend/server
|
|||||||
mkdir -p /opt/adventurelog/backend/server/media
|
mkdir -p /opt/adventurelog/backend/server/media
|
||||||
$STD uv venv --clear /opt/adventurelog/backend/server/.venv
|
$STD uv venv --clear /opt/adventurelog/backend/server/.venv
|
||||||
$STD /opt/adventurelog/backend/server/.venv/bin/python -m ensurepip --upgrade
|
$STD /opt/adventurelog/backend/server/.venv/bin/python -m ensurepip --upgrade
|
||||||
$STD uv pip install --python /opt/adventurelog/backend/server/.venv/bin/python -r requirements.txt
|
$STD /opt/adventurelog/backend/server/.venv/bin/python -m pip install --upgrade pip
|
||||||
$STD uv pip install --python /opt/adventurelog/backend/server/.venv/bin/python 'djangorestframework<3.15'
|
$STD /opt/adventurelog/backend/server/.venv/bin/python -m pip install -r requirements.txt
|
||||||
|
$STD /opt/adventurelog/backend/server/.venv/bin/python -m pip install 'djangorestframework<3.15'
|
||||||
$STD /opt/adventurelog/backend/server/.venv/bin/python -m manage collectstatic --noinput
|
$STD /opt/adventurelog/backend/server/.venv/bin/python -m manage collectstatic --noinput
|
||||||
$STD /opt/adventurelog/backend/server/.venv/bin/python -m manage migrate
|
$STD /opt/adventurelog/backend/server/.venv/bin/python -m manage migrate
|
||||||
$STD /opt/adventurelog/backend/server/.venv/bin/python -m manage download-countries
|
$STD /opt/adventurelog/backend/server/.venv/bin/python -m manage download-countries
|
||||||
|
|||||||
@@ -19,3 +19,4 @@ msg_ok "Installed Dependencies"
|
|||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
cleanup_lxc
|
||||||
|
|||||||
@@ -45,8 +45,6 @@ msg_ok "Installed IT-Tools"
|
|||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
|
||||||
msg_info "Cleaning up"
|
|
||||||
rm -rf /tmp/dist
|
rm -rf /tmp/dist
|
||||||
rm -f it-tools.zip
|
rm -f it-tools.zip
|
||||||
$STD apk cache clean
|
cleanup_lxc
|
||||||
msg_ok "Cleaned"
|
|
||||||
|
|||||||
@@ -194,3 +194,4 @@ msg_ok "Finished Nextcloud Setup-Wizard"
|
|||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
cleanup_lxc
|
||||||
|
|||||||
@@ -93,6 +93,4 @@ msg_ok "Started Redlib Service"
|
|||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
|
||||||
msg_info "Cleaning up"
|
cleanup_lxc
|
||||||
$STD apk cache clean
|
|
||||||
msg_ok "Cleaned"
|
|
||||||
|
|||||||
@@ -55,3 +55,4 @@ msg_ok "Started Wakapi"
|
|||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
cleanup_lxc
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y \
|
$STD apt install -y \
|
||||||
gdal-bin \
|
gdal-bin \
|
||||||
tesseract-ocr \
|
tesseract-ocr \
|
||||||
tesseract-ocr-eng \
|
tesseract-ocr-eng \
|
||||||
@@ -24,7 +24,7 @@ $STD apt-get install -y \
|
|||||||
tesseract-ocr-deu
|
tesseract-ocr-deu
|
||||||
|
|
||||||
$STD echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections
|
$STD echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections
|
||||||
$STD apt-get install -y \
|
$STD apt install -y \
|
||||||
xfonts-utils \
|
xfonts-utils \
|
||||||
fonts-freefont-ttf \
|
fonts-freefont-ttf \
|
||||||
fonts-liberation \
|
fonts-liberation \
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y \
|
$STD apt install -y \
|
||||||
git \
|
git \
|
||||||
expect \
|
expect \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
@@ -27,7 +27,7 @@ $STD apt-get install -y \
|
|||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Installing Python Dependencies"
|
msg_info "Installing Python Dependencies"
|
||||||
$STD apt-get install -y \
|
$STD apt install -y \
|
||||||
python3-ldap \
|
python3-ldap \
|
||||||
python3-msgpack \
|
python3-msgpack \
|
||||||
python3-regex
|
python3-regex
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y \
|
$STD apt install -y \
|
||||||
uwsgi \
|
uwsgi \
|
||||||
uwsgi-plugin-python3 \
|
uwsgi-plugin-python3 \
|
||||||
libopenjp2-7-dev \
|
libopenjp2-7-dev \
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies (Patience)"
|
msg_info "Installing Dependencies (Patience)"
|
||||||
$STD apt-get install -y \
|
$STD apt install -y \
|
||||||
git \
|
git \
|
||||||
build-essential \
|
build-essential \
|
||||||
dumb-init \
|
dumb-init \
|
||||||
@@ -60,7 +60,8 @@ msg_info "Installing Change Detection"
|
|||||||
mkdir -p /opt/changedetection
|
mkdir -p /opt/changedetection
|
||||||
$STD uv venv --clear /opt/changedetection/.venv
|
$STD uv venv --clear /opt/changedetection/.venv
|
||||||
$STD /opt/changedetection/.venv/bin/python -m ensurepip --upgrade
|
$STD /opt/changedetection/.venv/bin/python -m ensurepip --upgrade
|
||||||
$STD uv pip install --python /opt/changedetection/.venv/bin/python changedetection.io
|
$STD /opt/changedetection/.venv/bin/python -m pip install --upgrade pip
|
||||||
|
$STD /opt/changedetection/.venv/bin/python -m pip install changedetection.io
|
||||||
cat <<EOF >/opt/changedetection/.env
|
cat <<EOF >/opt/changedetection/.env
|
||||||
WEBDRIVER_URL=http://127.0.0.1:4444/wd/hub
|
WEBDRIVER_URL=http://127.0.0.1:4444/wd/hub
|
||||||
PLAYWRIGHT_DRIVER_URL=ws://localhost:3000/chrome?launch=eyJkZWZhdWx0Vmlld3BvcnQiOnsiaGVpZ2h0Ijo3MjAsIndpZHRoIjoxMjgwfSwiaGVhZGxlc3MiOmZhbHNlLCJzdGVhbHRoIjp0cnVlfQ==&blockAds=true
|
PLAYWRIGHT_DRIVER_URL=ws://localhost:3000/chrome?launch=eyJkZWZhdWx0Vmlld3BvcnQiOnsiaGVpZ2h0Ijo3MjAsIndpZHRoIjoxMjgwfSwiaGVhZGxlc3MiOmZhbHNlLCJzdGVhbHRoIjp0cnVlfQ==&blockAds=true
|
||||||
@@ -70,7 +71,7 @@ msg_ok "Installed Change Detection"
|
|||||||
|
|
||||||
msg_info "Installing Browserless & Playwright"
|
msg_info "Installing Browserless & Playwright"
|
||||||
mkdir /opt/browserless
|
mkdir /opt/browserless
|
||||||
$STD uv pip install --python /opt/changedetection/.venv/bin/python playwright
|
$STD /opt/changedetection/.venv/bin/python -m pip install playwright
|
||||||
$STD git clone https://github.com/browserless/chrome /opt/browserless
|
$STD git clone https://github.com/browserless/chrome /opt/browserless
|
||||||
$STD npm ci --include=optional --include=dev --prefix /opt/browserless
|
$STD npm ci --include=optional --include=dev --prefix /opt/browserless
|
||||||
$STD npm install --save-exact playwright-core@1.62.1 --prefix /opt/browserless
|
$STD npm install --save-exact playwright-core@1.62.1 --prefix /opt/browserless
|
||||||
@@ -84,7 +85,7 @@ $STD npm prune production --prefix /opt/browserless
|
|||||||
msg_ok "Installed Browserless & Playwright"
|
msg_ok "Installed Browserless & Playwright"
|
||||||
|
|
||||||
msg_info "Installing Font Packages"
|
msg_info "Installing Font Packages"
|
||||||
$STD apt-get install -y \
|
$STD apt install -y \
|
||||||
fontconfig \
|
fontconfig \
|
||||||
libfontconfig1 \
|
libfontconfig1 \
|
||||||
fonts-freefont-ttf \
|
fonts-freefont-ttf \
|
||||||
@@ -99,7 +100,7 @@ $STD apt-get install -y \
|
|||||||
msg_ok "Installed Font Packages"
|
msg_ok "Installed Font Packages"
|
||||||
|
|
||||||
msg_info "Installing X11 Packages"
|
msg_info "Installing X11 Packages"
|
||||||
$STD apt-get install -y \
|
$STD apt install -y \
|
||||||
libx11-6 \
|
libx11-6 \
|
||||||
libx11-xcb1 \
|
libx11-xcb1 \
|
||||||
libxcb1 \
|
libxcb1 \
|
||||||
|
|||||||
@@ -159,7 +159,6 @@ StandardError=journal
|
|||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
$STD systemctl daemon-reload
|
|
||||||
$STD systemctl enable -q --now databasus
|
$STD systemctl enable -q --now databasus
|
||||||
msg_ok "Created Databasus Service"
|
msg_ok "Created Databasus Service"
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ setup_deb_based() {
|
|||||||
|
|
||||||
if [[ -n "$socket" ]]; then
|
if [[ -n "$socket" ]]; then
|
||||||
msg_info "Enabling Docker TCP socket on $socket"
|
msg_info "Enabling Docker TCP socket on $socket"
|
||||||
$STD apt-get install -y jq
|
$STD apt install -y jq
|
||||||
|
|
||||||
tmpfile=$(mktemp)
|
tmpfile=$(mktemp)
|
||||||
jq --arg sock "$socket" '. + { "hosts": ["unix:///var/run/docker.sock", $sock] }' /etc/docker/daemon.json >"$tmpfile" && mv "$tmpfile" /etc/docker/daemon.json
|
jq --arg sock "$socket" '. + { "hosts": ["unix:///var/run/docker.sock", $sock] }' /etc/docker/daemon.json >"$tmpfile" && mv "$tmpfile" /etc/docker/daemon.json
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y \
|
$STD apt install -y \
|
||||||
php-imap \
|
php-imap \
|
||||||
debconf-utils
|
debconf-utils
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
@@ -36,7 +36,7 @@ RELEASE=$(curl -fsSL "$BASE" | grep -oP '(?<=/Dolibarr%20installer%20for%20Debia
|
|||||||
FILE=$(curl -fsSL "${BASE}${RELEASE}/" | grep -oP 'dolibarr_[^"]+_all.deb' | head -n1)
|
FILE=$(curl -fsSL "${BASE}${RELEASE}/" | grep -oP 'dolibarr_[^"]+_all.deb' | head -n1)
|
||||||
curl -fsSL "https://altushost-swe.dl.sourceforge.net/project/dolibarr/Dolibarr%20installer%20for%20Debian-Ubuntu%20(DoliDeb)/${RELEASE}/${FILE}?viasf=1" -o ""$FILE""
|
curl -fsSL "https://altushost-swe.dl.sourceforge.net/project/dolibarr/Dolibarr%20installer%20for%20Debian-Ubuntu%20(DoliDeb)/${RELEASE}/${FILE}?viasf=1" -o ""$FILE""
|
||||||
echo "dolibarr dolibarr/reconfigure-webserver multiselect apache2" | debconf-set-selections
|
echo "dolibarr dolibarr/reconfigure-webserver multiselect apache2" | debconf-set-selections
|
||||||
$STD apt-get install ./$FILE -y
|
$STD apt install ./$FILE -y
|
||||||
$STD apt install -f
|
$STD apt install -f
|
||||||
rm -rf ~/$FILE
|
rm -rf ~/$FILE
|
||||||
echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt"
|
echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt"
|
||||||
|
|||||||
@@ -15,12 +15,12 @@ update_os
|
|||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
apt_update_safe
|
apt_update_safe
|
||||||
$STD apt-get install -y \
|
$STD apt install -y \
|
||||||
ssh \
|
ssh \
|
||||||
software-properties-common
|
software-properties-common
|
||||||
|
|
||||||
$STD add-apt-repository -y ppa:dotnet/backports
|
$STD add-apt-repository -y ppa:dotnet/backports
|
||||||
$STD apt-get install -y \
|
$STD apt install -y \
|
||||||
dotnet-sdk-9.0 \
|
dotnet-sdk-9.0 \
|
||||||
vsftpd \
|
vsftpd \
|
||||||
nginx
|
nginx
|
||||||
|
|||||||
@@ -26,7 +26,8 @@ mkdir -p /root/config
|
|||||||
cd /opt/esphome
|
cd /opt/esphome
|
||||||
$STD uv venv --clear /opt/esphome/.venv
|
$STD uv venv --clear /opt/esphome/.venv
|
||||||
$STD /opt/esphome/.venv/bin/python -m ensurepip --upgrade
|
$STD /opt/esphome/.venv/bin/python -m ensurepip --upgrade
|
||||||
$STD uv pip install --python /opt/esphome/.venv/bin/python esphome esphome-device-builder esptool
|
$STD /opt/esphome/.venv/bin/python -m pip install --upgrade pip
|
||||||
|
$STD /opt/esphome/.venv/bin/python -m pip install esphome esphome-device-builder esptool
|
||||||
msg_ok "Setup and Installed ESPHome Device Builder"
|
msg_ok "Setup and Installed ESPHome Device Builder"
|
||||||
|
|
||||||
msg_info "Linking esphome to /usr/local/bin"
|
msg_info "Linking esphome to /usr/local/bin"
|
||||||
|
|||||||
@@ -98,6 +98,7 @@ mkdir -p /opt/fireshare-{data,videos,images,processed}
|
|||||||
cd /opt/fireshare
|
cd /opt/fireshare
|
||||||
$STD uv venv
|
$STD uv venv
|
||||||
$STD .venv/bin/python -m ensurepip --upgrade
|
$STD .venv/bin/python -m ensurepip --upgrade
|
||||||
|
$STD .venv/bin/python -m pip install --upgrade --break-system-packages pip
|
||||||
ln -sf /usr/local/bin/ffmpeg /usr/bin/ffmpeg
|
ln -sf /usr/local/bin/ffmpeg /usr/bin/ffmpeg
|
||||||
ln -sf /usr/local/bin/ffprobe /usr/bin/ffprobe
|
ln -sf /usr/local/bin/ffprobe /usr/bin/ffprobe
|
||||||
echo "/usr/local/lib" >/etc/ld.so.conf.d/usr-local.conf
|
echo "/usr/local/lib" >/etc/ld.so.conf.d/usr-local.conf
|
||||||
@@ -105,7 +106,7 @@ echo "/usr/local/cuda/lib64" >>/etc/ld.so.conf.d/usr-local.conf
|
|||||||
echo "/usr/local/nvidia/lib" >>/etc/ld.so.conf.d/nvidia.conf
|
echo "/usr/local/nvidia/lib" >>/etc/ld.so.conf.d/nvidia.conf
|
||||||
echo "/usr/local/nvidia/lib64" >>/etc/ld.so.conf.d/nvidia.conf
|
echo "/usr/local/nvidia/lib64" >>/etc/ld.so.conf.d/nvidia.conf
|
||||||
ldconfig
|
ldconfig
|
||||||
$STD uv pip install --python .venv/bin/python --no-cache --reinstall app/server
|
$STD .venv/bin/python -m pip install --no-cache-dir --break-system-packages --ignore-installed app/server
|
||||||
cp .venv/bin/fireshare /usr/local/bin/fireshare
|
cp .venv/bin/fireshare /usr/local/bin/fireshare
|
||||||
export FLASK_APP="/opt/fireshare/app/server/fireshare:create_app()"
|
export FLASK_APP="/opt/fireshare/app/server/fireshare:create_app()"
|
||||||
export DATA_DIRECTORY=/opt/fireshare-data
|
export DATA_DIRECTORY=/opt/fireshare-data
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y \
|
$STD apt install -y \
|
||||||
apt-transport-https \
|
apt-transport-https \
|
||||||
xvfb
|
xvfb
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ GRAMPS_PLUGINS_DIR="/opt/gramps-web/data/gramps/gramps${GRAMPS_VERSION}/plugins"
|
|||||||
mkdir -p "$GRAMPS_PLUGINS_DIR"
|
mkdir -p "$GRAMPS_PLUGINS_DIR"
|
||||||
|
|
||||||
msg_info "Installing Gramps Addons (gramps${GRAMPS_VERSION})"
|
msg_info "Installing Gramps Addons (gramps${GRAMPS_VERSION})"
|
||||||
$STD wget -q https://github.com/gramps-project/addons/archive/refs/heads/master.zip -O /tmp/gramps-addons.zip
|
curl -fsSL -o /tmp/gramps-addons.zip https://github.com/gramps-project/addons/archive/refs/heads/master.zip
|
||||||
for addon in FilterRules JSON; do
|
for addon in FilterRules JSON; do
|
||||||
unzip -p /tmp/gramps-addons.zip "addons-master/gramps${GRAMPS_VERSION}/download/${addon}.addon.tgz" | \
|
unzip -p /tmp/gramps-addons.zip "addons-master/gramps${GRAMPS_VERSION}/download/${addon}.addon.tgz" | \
|
||||||
tar -xz -C "$GRAMPS_PLUGINS_DIR"
|
tar -xz -C "$GRAMPS_PLUGINS_DIR"
|
||||||
|
|||||||
@@ -20,13 +20,13 @@ PASSWORD_SECRET=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c16)
|
|||||||
curl -fsSL "https://packages.graylog2.org/repo/packages/graylog-7.0-repository_latest.deb" -o "graylog-7.0-repository_latest.deb"
|
curl -fsSL "https://packages.graylog2.org/repo/packages/graylog-7.0-repository_latest.deb" -o "graylog-7.0-repository_latest.deb"
|
||||||
$STD dpkg -i graylog-7.0-repository_latest.deb
|
$STD dpkg -i graylog-7.0-repository_latest.deb
|
||||||
apt_update_safe
|
apt_update_safe
|
||||||
$STD apt-get install graylog-datanode -y
|
$STD apt install graylog-datanode -y
|
||||||
sed -i "s/password_secret =/password_secret = $PASSWORD_SECRET/g" /etc/graylog/datanode/datanode.conf
|
sed -i "s/password_secret =/password_secret = $PASSWORD_SECRET/g" /etc/graylog/datanode/datanode.conf
|
||||||
systemctl enable -q --now graylog-datanode
|
systemctl enable -q --now graylog-datanode
|
||||||
msg_ok "Setup Graylog Data Node"
|
msg_ok "Setup Graylog Data Node"
|
||||||
|
|
||||||
msg_info "Setup ${APPLICATION}"
|
msg_info "Setup ${APPLICATION}"
|
||||||
$STD apt-get install graylog-server
|
$STD apt install graylog-server
|
||||||
ROOT_PASSWORD=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c16)
|
ROOT_PASSWORD=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c16)
|
||||||
cat <<EOF >~/graylog.creds
|
cat <<EOF >~/graylog.creds
|
||||||
${APPLICATION} Credentials
|
${APPLICATION} Credentials
|
||||||
|
|||||||
@@ -79,7 +79,6 @@ ExecStart=/opt/homarr/run.sh
|
|||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
chmod +x /opt/homarr/run.sh
|
chmod +x /opt/homarr/run.sh
|
||||||
systemctl daemon-reload
|
|
||||||
systemctl enable -q --now redis-server
|
systemctl enable -q --now redis-server
|
||||||
systemctl enable -q --now homarr
|
systemctl enable -q --now homarr
|
||||||
systemctl disable -q --now nginx
|
systemctl disable -q --now nginx
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y jq
|
$STD apt install -y jq
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
NODE_VERSION="22" NODE_MODULE="pnpm@latest" setup_nodejs
|
NODE_VERSION="22" NODE_MODULE="pnpm@latest" setup_nodejs
|
||||||
|
|||||||
@@ -111,9 +111,7 @@ server {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
ln -sf /etc/nginx/sites-available/ignis.conf /etc/nginx/sites-enabled/ignis.conf
|
nginx_enable_site ignis.conf
|
||||||
rm -f /etc/nginx/sites-enabled/default
|
|
||||||
systemctl restart nginx
|
|
||||||
msg_ok "Configured Nginx"
|
msg_ok "Configured Nginx"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y libicu-dev
|
$STD apt install -y libicu-dev
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "jackett" "Jackett/Jackett" "prebuild" "latest" "/opt/Jackett" "Jackett.Binaries.Linux$(arch_resolve "AMDx64" "ARM64").tar.gz"
|
fetch_and_deploy_gh_release "jackett" "Jackett/Jackett" "prebuild" "latest" "/opt/Jackett" "Jackett.Binaries.Linux$(arch_resolve "AMDx64" "ARM64").tar.gz"
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ msg_ok "Installed GUI Dependencies"
|
|||||||
|
|
||||||
msg_info "Downloading JDownloader"
|
msg_info "Downloading JDownloader"
|
||||||
mkdir -p /opt/jdownloader
|
mkdir -p /opt/jdownloader
|
||||||
$STD wget -O /opt/jdownloader/JDownloader.jar https://installer.jdownloader.org/JDownloader.jar
|
curl -fsSL -o /opt/jdownloader/JDownloader.jar https://installer.jdownloader.org/JDownloader.jar
|
||||||
msg_ok "Downloaded JDownloader"
|
msg_ok "Downloaded JDownloader"
|
||||||
|
|
||||||
msg_info "Installing JDownloader (Patience)"
|
msg_info "Installing JDownloader (Patience)"
|
||||||
@@ -194,7 +194,6 @@ EOF
|
|||||||
msg_ok "Created Services"
|
msg_ok "Created Services"
|
||||||
|
|
||||||
msg_info "Starting Services"
|
msg_info "Starting Services"
|
||||||
systemctl daemon-reload
|
|
||||||
systemctl enable -q --now xvfb
|
systemctl enable -q --now xvfb
|
||||||
sleep 2
|
sleep 2
|
||||||
systemctl enable -q --now openbox
|
systemctl enable -q --now openbox
|
||||||
|
|||||||
@@ -20,7 +20,8 @@ mkdir -p /opt/jupyter
|
|||||||
cd /opt/jupyter
|
cd /opt/jupyter
|
||||||
$STD uv venv --clear /opt/jupyter/.venv
|
$STD uv venv --clear /opt/jupyter/.venv
|
||||||
$STD /opt/jupyter/.venv/bin/python -m ensurepip --upgrade
|
$STD /opt/jupyter/.venv/bin/python -m ensurepip --upgrade
|
||||||
$STD uv pip install --python /opt/jupyter/.venv/bin/python jupyter
|
$STD /opt/jupyter/.venv/bin/python -m pip install --upgrade pip
|
||||||
|
$STD /opt/jupyter/.venv/bin/python -m pip install jupyter
|
||||||
ln -s /opt/jupyter/.venv/bin/jupyter /usr/local/bin/jupyter
|
ln -s /opt/jupyter/.venv/bin/jupyter /usr/local/bin/jupyter
|
||||||
ln -s /opt/jupyter/.venv/bin/jupyter-lab /usr/local/bin/jupyter-lab
|
ln -s /opt/jupyter/.venv/bin/jupyter-lab /usr/local/bin/jupyter-lab
|
||||||
ln -s /opt/jupyter/.venv/bin/jupyter-notebook /usr/local/bin/jupyter-notebook
|
ln -s /opt/jupyter/.venv/bin/jupyter-notebook /usr/local/bin/jupyter-notebook
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y libicu-dev
|
$STD apt install -y libicu-dev
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "Kavita" "Kareadita/Kavita" "prebuild" "latest" "/opt/Kavita" "kavita-linux-$(arch_resolve "x64" "arm64").tar.gz"
|
fetch_and_deploy_gh_release "Kavita" "Kareadita/Kavita" "prebuild" "latest" "/opt/Kavita" "kavita-linux-$(arch_resolve "x64" "arm64").tar.gz"
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y \
|
$STD apt install -y \
|
||||||
build-essential \
|
build-essential \
|
||||||
git \
|
git \
|
||||||
openssl \
|
openssl \
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y \
|
$STD apt install -y \
|
||||||
build-essential \
|
build-essential \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
cmake \
|
cmake \
|
||||||
|
|||||||
@@ -148,7 +148,4 @@ msg_ok "Created Services"
|
|||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
|
||||||
msg_info "Cleaning up"
|
cleanup_lxc
|
||||||
$STD apt-get -y autoremove
|
|
||||||
$STD apt-get -y autoclean
|
|
||||||
msg_ok "Cleaned"
|
|
||||||
|
|||||||
@@ -32,7 +32,8 @@ msg_info "Installing Mylar3"
|
|||||||
mkdir -p /opt/mylar3-data
|
mkdir -p /opt/mylar3-data
|
||||||
$STD uv venv --clear /opt/mylar3/.venv
|
$STD uv venv --clear /opt/mylar3/.venv
|
||||||
$STD /opt/mylar3/.venv/bin/python -m ensurepip --upgrade
|
$STD /opt/mylar3/.venv/bin/python -m ensurepip --upgrade
|
||||||
$STD uv pip install --python /opt/mylar3/.venv/bin/python --no-cache -r /opt/mylar3/requirements.txt
|
$STD /opt/mylar3/.venv/bin/python -m pip install --upgrade pip
|
||||||
|
$STD /opt/mylar3/.venv/bin/python -m pip install --no-cache-dir -r /opt/mylar3/requirements.txt
|
||||||
msg_ok "Installed Mylar3"
|
msg_ok "Installed Mylar3"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
|
|||||||
@@ -111,7 +111,6 @@ systemctl restart apache2
|
|||||||
|
|
||||||
mv /opt/netbox/contrib/gunicorn.py /opt/netbox/gunicorn.py
|
mv /opt/netbox/contrib/gunicorn.py /opt/netbox/gunicorn.py
|
||||||
mv /opt/netbox/contrib/*.service /etc/systemd/system/
|
mv /opt/netbox/contrib/*.service /etc/systemd/system/
|
||||||
systemctl daemon-reload
|
|
||||||
systemctl enable -q --now netbox netbox-rq
|
systemctl enable -q --now netbox netbox-rq
|
||||||
echo -e "Netbox Secret: \e[32m$SECRET_KEY\e[0m" >>~/netbox.creds
|
echo -e "Netbox Secret: \e[32m$SECRET_KEY\e[0m" >>~/netbox.creds
|
||||||
msg_ok "Configured NetBox"
|
msg_ok "Configured NetBox"
|
||||||
|
|||||||
@@ -65,7 +65,6 @@ KillMode=mixed
|
|||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
systemctl daemon-reload
|
|
||||||
msg_ok "Created Service"
|
msg_ok "Created Service"
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
|
|||||||
@@ -86,3 +86,4 @@ msg_ok "Builded and started NPMplus"
|
|||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
cleanup_lxc
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ couchdb couchdb/adminpass seen true
|
|||||||
couchdb couchdb/adminpass_again password ${COUCHDB_PASSWORD}
|
couchdb couchdb/adminpass_again password ${COUCHDB_PASSWORD}
|
||||||
couchdb couchdb/adminpass_again seen true
|
couchdb couchdb/adminpass_again seen true
|
||||||
EOF
|
EOF
|
||||||
DEBIAN_FRONTEND=noninteractive $STD apt-get install -y couchdb
|
DEBIAN_FRONTEND=noninteractive $STD apt install -y couchdb
|
||||||
|
|
||||||
cat <<EOF >/root/.couchdb.credentials
|
cat <<EOF >/root/.couchdb.credentials
|
||||||
COUCHDB_ADMIN_USER="${COUCHDB_ADMIN_USER}"
|
COUCHDB_ADMIN_USER="${COUCHDB_ADMIN_USER}"
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ Suites: ./
|
|||||||
Signed-By: /etc/apt/keyrings/collaboraonline-release-keyring.gpg
|
Signed-By: /etc/apt/keyrings/collaboraonline-release-keyring.gpg
|
||||||
EOF
|
EOF
|
||||||
apt_update_safe
|
apt_update_safe
|
||||||
$STD apt-get install -y coolwsd code-brand
|
$STD apt install -y coolwsd code-brand
|
||||||
systemctl stop coolwsd
|
systemctl stop coolwsd
|
||||||
mkdir -p /etc/systemd/system/coolwsd.service.d
|
mkdir -p /etc/systemd/system/coolwsd.service.d
|
||||||
cat <<EOF >/etc/systemd/system/coolwsd.service.d/override.conf
|
cat <<EOF >/etc/systemd/system/coolwsd.service.d/override.conf
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ chown -R openhab:openhab /var/lib/openhab /etc/openhab /var/log/openhab
|
|||||||
msg_ok "Initialized openHAB directories"
|
msg_ok "Initialized openHAB directories"
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
systemctl daemon-reload
|
|
||||||
systemctl enable -q --now openhab
|
systemctl enable -q --now openhab
|
||||||
msg_ok "Started Service"
|
msg_ok "Started Service"
|
||||||
|
|
||||||
|
|||||||
@@ -268,7 +268,6 @@ RestartSec=5
|
|||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
systemctl daemon-reload
|
|
||||||
systemctl enable -q --now plane-api plane-worker plane-beat plane-live plane-space
|
systemctl enable -q --now plane-api plane-worker plane-beat plane-live plane-space
|
||||||
cat <<EOF >~/plane.creds
|
cat <<EOF >~/plane.creds
|
||||||
RabbitMQ User: plane
|
RabbitMQ User: plane
|
||||||
|
|||||||
@@ -21,7 +21,8 @@ cd /opt/prometheus-pve-exporter
|
|||||||
|
|
||||||
$STD uv venv --clear /opt/prometheus-pve-exporter/.venv
|
$STD uv venv --clear /opt/prometheus-pve-exporter/.venv
|
||||||
$STD /opt/prometheus-pve-exporter/.venv/bin/python -m ensurepip --upgrade
|
$STD /opt/prometheus-pve-exporter/.venv/bin/python -m ensurepip --upgrade
|
||||||
$STD uv pip install --python /opt/prometheus-pve-exporter/.venv/bin/python prometheus-pve-exporter
|
$STD /opt/prometheus-pve-exporter/.venv/bin/python -m pip install --upgrade pip
|
||||||
|
$STD /opt/prometheus-pve-exporter/.venv/bin/python -m pip install prometheus-pve-exporter
|
||||||
cat <<EOF >/opt/prometheus-pve-exporter/pve.yml
|
cat <<EOF >/opt/prometheus-pve-exporter/pve.yml
|
||||||
default:
|
default:
|
||||||
user: prometheus@pve
|
user: prometheus@pve
|
||||||
|
|||||||
@@ -115,7 +115,6 @@ RestartSec=5
|
|||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
systemctl daemon-reload
|
|
||||||
systemctl enable -q --now chromium-printer.service reactive-resume.service
|
systemctl enable -q --now chromium-printer.service reactive-resume.service
|
||||||
msg_ok "Created Services"
|
msg_ok "Created Services"
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ setup_deb822_repo \
|
|||||||
"https://download.angie.software/angie/debian/$(get_os_info version_id)" \
|
"https://download.angie.software/angie/debian/$(get_os_info version_id)" \
|
||||||
"$(get_os_info codename)" \
|
"$(get_os_info codename)" \
|
||||||
"main"
|
"main"
|
||||||
$STD apt-get install -y angie angie-module-zip angie-module-njs
|
$STD apt install -y angie angie-module-zip angie-module-njs
|
||||||
sed -i '1i load_module modules/ngx_http_zip_module.so;\nload_module modules/ngx_http_js_module.so;' /etc/angie/angie.conf
|
sed -i '1i load_module modules/ngx_http_zip_module.so;\nload_module modules/ngx_http_js_module.so;' /etc/angie/angie.conf
|
||||||
mkdir -p /etc/angie/js
|
mkdir -p /etc/angie/js
|
||||||
cat <<'EOF' >/etc/angie/js/decode.js
|
cat <<'EOF' >/etc/angie/js/decode.js
|
||||||
|
|||||||
@@ -55,7 +55,6 @@ EOF
|
|||||||
cat <<EOF >>/etc/php/${PHP_VER}/fpm/pool.d/www.conf
|
cat <<EOF >>/etc/php/${PHP_VER}/fpm/pool.d/www.conf
|
||||||
env[CURL_IMPERSONATE] = chrome142
|
env[CURL_IMPERSONATE] = chrome142
|
||||||
EOF
|
EOF
|
||||||
$STD systemctl daemon-reload
|
|
||||||
safe_service_restart php${PHP_VER}-fpm
|
safe_service_restart php${PHP_VER}-fpm
|
||||||
msg_ok "Enabled curl-impersonate for PHP-FPM"
|
msg_ok "Enabled curl-impersonate for PHP-FPM"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -20,7 +20,8 @@ msg_info "Installing Scraparr"
|
|||||||
cd /opt/scraparr
|
cd /opt/scraparr
|
||||||
$STD uv venv --clear /opt/scraparr/.venv
|
$STD uv venv --clear /opt/scraparr/.venv
|
||||||
$STD /opt/scraparr/.venv/bin/python -m ensurepip --upgrade
|
$STD /opt/scraparr/.venv/bin/python -m ensurepip --upgrade
|
||||||
$STD uv pip install --python /opt/scraparr/.venv/bin/python -r /opt/scraparr/src/scraparr/requirements.txt
|
$STD /opt/scraparr/.venv/bin/python -m pip install --upgrade pip
|
||||||
|
$STD /opt/scraparr/.venv/bin/python -m pip install -r /opt/scraparr/src/scraparr/requirements.txt
|
||||||
chmod -R 755 /opt/scraparr
|
chmod -R 755 /opt/scraparr
|
||||||
mkdir -p /scraparr/config
|
mkdir -p /scraparr/config
|
||||||
mv /opt/scraparr/config.yaml /scraparr/config/config.yaml
|
mv /opt/scraparr/config.yaml /scraparr/config/config.yaml
|
||||||
|
|||||||
@@ -16,16 +16,16 @@ update_os
|
|||||||
setup_hwaccel
|
setup_hwaccel
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y make zip net-tools git
|
$STD apt install -y make zip net-tools git
|
||||||
$STD apt-get install -y gcc g++ cmake
|
$STD apt install -y gcc g++ cmake
|
||||||
$STD apt-get install -y ca-certificates
|
$STD apt install -y ca-certificates
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
NODE_VERSION="22" setup_nodejs
|
NODE_VERSION="22" setup_nodejs
|
||||||
setup_mariadb
|
setup_mariadb
|
||||||
|
|
||||||
msg_info "Installing FFMPEG"
|
msg_info "Installing FFMPEG"
|
||||||
$STD apt-get install -y ffmpeg
|
$STD apt install -y ffmpeg
|
||||||
msg_ok "Installed FFMPEG"
|
msg_ok "Installed FFMPEG"
|
||||||
|
|
||||||
msg_info "Cloning Shinobi"
|
msg_info "Cloning Shinobi"
|
||||||
|
|||||||
@@ -122,7 +122,6 @@ RestartSec=5
|
|||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
systemctl daemon-reload
|
|
||||||
systemctl enable -q --now snapotter
|
systemctl enable -q --now snapotter
|
||||||
msg_ok "Created Service"
|
msg_ok "Created Service"
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ setup_deb822_repo \
|
|||||||
"https://packages.microsoft.com/ubuntu/22.04/prod" \
|
"https://packages.microsoft.com/ubuntu/22.04/prod" \
|
||||||
"jammy" \
|
"jammy" \
|
||||||
"main"
|
"main"
|
||||||
$STD apt-get install -y \
|
$STD apt install -y \
|
||||||
mssql-tools18 \
|
mssql-tools18 \
|
||||||
unixodbc-dev
|
unixodbc-dev
|
||||||
echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >>~/.bash_profile
|
echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >>~/.bash_profile
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ setup_deb822_repo \
|
|||||||
"https://packages.microsoft.com/ubuntu/24.04/prod" \
|
"https://packages.microsoft.com/ubuntu/24.04/prod" \
|
||||||
"noble" \
|
"noble" \
|
||||||
"main"
|
"main"
|
||||||
$STD apt-get install -y \
|
$STD apt install -y \
|
||||||
mssql-tools18 \
|
mssql-tools18 \
|
||||||
unixodbc-dev
|
unixodbc-dev
|
||||||
echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >>~/.bash_profile
|
echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >>~/.bash_profile
|
||||||
|
|||||||
@@ -51,9 +51,7 @@ server {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
ln -sf /etc/nginx/sites-available/super-productivity.conf /etc/nginx/sites-enabled/super-productivity.conf
|
nginx_enable_site super-productivity.conf
|
||||||
rm -f /etc/nginx/sites-enabled/default
|
|
||||||
systemctl reload nginx
|
|
||||||
msg_ok "Configured Nginx"
|
msg_ok "Configured Nginx"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies. Patience"
|
msg_info "Installing Dependencies. Patience"
|
||||||
$STD apt-get install -y \
|
$STD apt install -y \
|
||||||
git \
|
git \
|
||||||
python3-venv
|
python3-venv
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ export SPRING_DATASOURCE_PASSWORD=${PG_DB_PASS}
|
|||||||
# Specify partitioning size for timestamp key-value storage. Allowed values: DAYS, MONTHS, YEARS, INDEFINITE.
|
# Specify partitioning size for timestamp key-value storage. Allowed values: DAYS, MONTHS, YEARS, INDEFINITE.
|
||||||
export SQL_POSTGRES_TS_KV_PARTITIONING=MONTHS
|
export SQL_POSTGRES_TS_KV_PARTITIONING=MONTHS
|
||||||
EOF
|
EOF
|
||||||
systemctl daemon-reload
|
|
||||||
msg_ok "Configured ThingsBoard"
|
msg_ok "Configured ThingsBoard"
|
||||||
|
|
||||||
msg_info "Running ThingsBoard Installation Script"
|
msg_info "Running ThingsBoard Installation Script"
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ apt_update_safe
|
|||||||
msg_ok "Setup Twingate Repository"
|
msg_ok "Setup Twingate Repository"
|
||||||
|
|
||||||
msg_info "Setup Twingate Connector"
|
msg_info "Setup Twingate Connector"
|
||||||
$STD apt-get install -y twingate-connector
|
$STD apt install -y twingate-connector
|
||||||
msg_ok "Setup Twingate Connector"
|
msg_ok "Setup Twingate Connector"
|
||||||
|
|
||||||
msg_info "Configure Twingate-Connector"
|
msg_info "Configure Twingate-Connector"
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ $STD sudo -u www-data php /opt/wallos/endpoints/db/migrate.php
|
|||||||
msg_ok "Installed Wallos"
|
msg_ok "Installed Wallos"
|
||||||
|
|
||||||
msg_info "Setting up Crontabs"
|
msg_info "Setting up Crontabs"
|
||||||
$STD apt-get install -y cron
|
$STD apt install -y cron
|
||||||
mkdir -p /var/log/cron
|
mkdir -p /var/log/cron
|
||||||
cat <<EOF >/opt/wallos.cron
|
cat <<EOF >/opt/wallos.cron
|
||||||
0 1 * * * php /opt/wallos/endpoints/cronjobs/updatenextpayment.php >> /var/log/cron/updatenextpayment.log 2>&1
|
0 1 * * * php /opt/wallos/endpoints/cronjobs/updatenextpayment.php >> /var/log/cron/updatenextpayment.log 2>&1
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y \
|
$STD apt install -y \
|
||||||
apt-transport-https \
|
apt-transport-https \
|
||||||
lsb-release \
|
lsb-release \
|
||||||
ca-certificates
|
ca-certificates
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ update_os
|
|||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
echo "davfs2 davfs2/suid_file boolean false" | debconf-set-selections
|
echo "davfs2 davfs2/suid_file boolean false" | debconf-set-selections
|
||||||
$STD apt-get install -y \
|
$STD apt install -y \
|
||||||
bzip2 \
|
bzip2 \
|
||||||
fuse3 \
|
fuse3 \
|
||||||
git \
|
git \
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ msg_ok "Setup Zerotier-One"
|
|||||||
|
|
||||||
msg_info "Setting up UI"
|
msg_info "Setting up UI"
|
||||||
if [[ "$(arch_resolve)" == "arm64" ]]; then
|
if [[ "$(arch_resolve)" == "arm64" ]]; then
|
||||||
$STD apt-get install -y build-essential python3 openssl
|
$STD apt install -y build-essential python3 openssl
|
||||||
NODE_VERSION="20" setup_nodejs
|
NODE_VERSION="20" setup_nodejs
|
||||||
curl -fsSL "https://github.com/key-networks/ztncui/archive/refs/heads/master.tar.gz" -o /tmp/ztncui.tar.gz
|
curl -fsSL "https://github.com/key-networks/ztncui/archive/refs/heads/master.tar.gz" -o /tmp/ztncui.tar.gz
|
||||||
$STD tar -xzf /tmp/ztncui.tar.gz -C /tmp
|
$STD tar -xzf /tmp/ztncui.tar.gz -C /tmp
|
||||||
@@ -68,7 +68,6 @@ Restart=on-failure
|
|||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
systemctl daemon-reload
|
|
||||||
systemctl enable -q ztncui
|
systemctl enable -q ztncui
|
||||||
else
|
else
|
||||||
curl -O https://s3-us-west-1.amazonaws.com/key-networks/deb/ztncui/1/x86_64/ztncui_0.8.14_amd64.deb
|
curl -O https://s3-us-west-1.amazonaws.com/key-networks/deb/ztncui/1/x86_64/ztncui_0.8.14_amd64.deb
|
||||||
|
|||||||
Reference in New Issue
Block a user