Compare commits

...

2 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
8dacebf747 fix: ensure trailing newline in redis.conf before appending bind directive in homarr scripts
Agent-Logs-Url: https://github.com/community-scripts/ProxmoxVE/sessions/69891642-9467-46d1-a5d4-004cb66aa824

Co-authored-by: MickLesk <47820557+MickLesk@users.noreply.github.com>
2026-04-10 20:26:38 +00:00
copilot-swe-agent[bot]
a15f57e0e3 Initial plan 2026-04-10 20:24:12 +00:00
2 changed files with 2 additions and 0 deletions

View File

@@ -65,6 +65,7 @@ EOF
msg_info "Updating Homarr"
cp /opt/homarr/redis.conf /etc/redis/redis.conf
sed -i -e '$a\' /etc/redis/redis.conf
grep -q '^bind 127.0.0.1 -::1$' /etc/redis/redis.conf || echo "bind 127.0.0.1 -::1" >> /etc/redis/redis.conf
rm /etc/nginx/nginx.conf
cp /opt/homarr/nginx.conf /etc/nginx/templates/nginx.conf

View File

@@ -47,6 +47,7 @@ mkdir -p /appdata/redis
chown -R redis:redis /appdata/redis
chmod 744 /appdata/redis
cp /opt/homarr/redis.conf /etc/redis/redis.conf
sed -i -e '$a\' /etc/redis/redis.conf
grep -q '^bind 127.0.0.1 -::1$' /etc/redis/redis.conf || echo "bind 127.0.0.1 -::1" >>/etc/redis/redis.conf
rm /etc/nginx/nginx.conf
mkdir -p /etc/nginx/templates