diff --git a/ct/romm.sh b/ct/romm.sh index be186e2ac..332e3e1fa 100644 --- a/ct/romm.sh +++ b/ct/romm.sh @@ -56,6 +56,13 @@ function update_script() { msg_ok "Migrated RQ services" fi + if ! grep -q '^save ' /etc/redis/redis.conf; then + msg_info "Reducing Redis snapshot frequency" + echo 'save 3600 1' >>/etc/redis/redis.conf + $STD redis-cli CONFIG SET save "3600 1" + msg_ok "Reduced Redis snapshot frequency" + fi + if check_for_gh_release "romm" "rommapp/romm"; then msg_info "Stopping Services" systemctl stop romm-backend romm-worker romm-scan-worker romm-scheduler romm-watcher diff --git a/install/romm-install.sh b/install/romm-install.sh index 30114e8b7..15c3d8f76 100644 --- a/install/romm-install.sh +++ b/install/romm-install.sh @@ -167,6 +167,7 @@ echo "__version__ = \"$(cat ~/.romm)\"" >/opt/romm/backend/__version__.py msg_info "Creating environment file" sed -i 's/^supervised no/supervised systemd/' /etc/redis/redis.conf +echo 'save 3600 1' >>/etc/redis/redis.conf systemctl restart redis-server systemctl enable -q --now redis-server AUTH_SECRET_KEY=$(openssl rand -hex 32)