mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-12-22 23:16:29 +01:00
Compare commits
2 Commits
update_uni
...
add_recycl
| Author | SHA1 | Date | |
|---|---|---|---|
| 25331dbb3a | |||
| 4565daa0f4 |
@ -28,8 +28,6 @@ function update_script() {
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
JAVA_VERSION="21" setup_java
|
|
||||||
|
|
||||||
msg_info "Updating ${APP}"
|
msg_info "Updating ${APP}"
|
||||||
$STD apt update --allow-releaseinfo-change
|
$STD apt update --allow-releaseinfo-change
|
||||||
$STD apt install -y unifi
|
$STD apt install -y unifi
|
||||||
|
|||||||
@ -31,5 +31,14 @@
|
|||||||
"username": null,
|
"username": null,
|
||||||
"password": null
|
"password": null
|
||||||
},
|
},
|
||||||
"notes": []
|
"notes": [
|
||||||
|
{
|
||||||
|
"type": "warning",
|
||||||
|
"content": "Configure your Radarr/Sonarr instances in `/root/.config/recyclarr/recyclarr.yml` before the first sync."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "info",
|
||||||
|
"content": "Automatic daily sync is configured via `/etc/cron.d/recyclarr`. Sync logs are saved to `/root/.config/recyclarr/sync.log`."
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -24,6 +24,14 @@ mkdir -p /root/.config/recyclarr
|
|||||||
$STD recyclarr config create
|
$STD recyclarr config create
|
||||||
msg_ok "Configured Recyclarr"
|
msg_ok "Configured Recyclarr"
|
||||||
|
|
||||||
|
msg_info "Setting up Daily Sync Cron"
|
||||||
|
cat <<EOF >/etc/cron.d/recyclarr
|
||||||
|
# Run recyclarr sync daily
|
||||||
|
@daily root recyclarr sync >> /root/.config/recyclarr/sync.log 2>&1
|
||||||
|
EOF
|
||||||
|
chmod 644 /etc/cron.d/recyclarr
|
||||||
|
msg_ok "Setup Daily Sync Cron"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
cleanup_lxc
|
cleanup_lxc
|
||||||
|
|||||||
@ -17,6 +17,7 @@ msg_info "Installing Dependencies"
|
|||||||
$STD apt install -y apt-transport-https
|
$STD apt install -y apt-transport-https
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
|
JAVA_VERION="17" setup_java
|
||||||
setup_deb822_repo \
|
setup_deb822_repo \
|
||||||
"unifi" \
|
"unifi" \
|
||||||
"https://dl.ui.com/unifi/unifi-repo.gpg" \
|
"https://dl.ui.com/unifi/unifi-repo.gpg" \
|
||||||
@ -25,22 +26,17 @@ setup_deb822_repo \
|
|||||||
"ubiquiti" \
|
"ubiquiti" \
|
||||||
"amd64"
|
"amd64"
|
||||||
|
|
||||||
JAVA_VERSION="21" setup_java
|
if ! grep -q -m1 'avx[^ ]*' /proc/cpuinfo; then
|
||||||
|
msg_warn "No AVX Support Detected. MongoDB v4.4 will be installed"
|
||||||
if lscpu | grep -q 'avx'; then
|
if ! dpkg -l | grep -q "libssl1.1"; then
|
||||||
MONGO_VERSION="8.0" setup_mongodb
|
curl -fsSL "https://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.1_1.1.1w-0+deb11u4_amd64.deb" -o "libssl1.1_1.1.1w-0+deb11u4_amd64.deb"
|
||||||
|
$STD dpkg -i libssl1.1_1.1.1w-0+deb11u4_amd64.deb
|
||||||
|
fi
|
||||||
|
MONGO_VERSION="4.4" setup_mongodb
|
||||||
else
|
else
|
||||||
msg_error "No AVX detected (CPU-Flag)! We have discontinued support for this. You are welcome to try it manually with a Debian LXC, but due to the many issues with Unifi, we currently only support AVX CPUs."
|
MONGO_VERSION="7.0" setup_mongodb
|
||||||
exit 10
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! dpkg -l | grep -q 'libssl1.1'; then
|
|
||||||
msg_info "Installing libssl (if needed)"
|
|
||||||
curl -fsSL "https://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.1_1.1.1w-0+deb11u4_amd64.deb" -o "/tmp/libssl.deb"
|
|
||||||
$STD dpkg -i /tmp/libssl.deb
|
|
||||||
rm -f /tmp/libssl.deb
|
|
||||||
msg_ok "Installed libssl1.1"
|
|
||||||
fi
|
fi
|
||||||
|
msg_ok "Installed MongoDB"
|
||||||
|
|
||||||
msg_info "Installing UniFi Network Server"
|
msg_info "Installing UniFi Network Server"
|
||||||
$STD apt install -y unifi
|
$STD apt install -y unifi
|
||||||
|
|||||||
Reference in New Issue
Block a user