mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-26 10:51:15 +00:00
fix: ensure trailing newline in redis.conf before appending bind directive (#13647)
* Initial plan * 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> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: MickLesk <47820557+MickLesk@users.noreply.github.com>
This commit is contained in:
parent
ba876c7495
commit
017e709ac7
2 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue