redis permissions

This commit is contained in:
Tobias 2025-12-08 22:15:30 +01:00
parent 63396af58c
commit 2fb35ca042
2 changed files with 4 additions and 0 deletions

View File

@ -43,6 +43,8 @@ function update_script() {
echo "REDIS_IS_EXTERNAL='true'" >> /opt/homarr/.env
sed -i 's|^ExecStart=.*|ExecStart=/opt/homarr/run.sh|' /etc/systemd/system/homarr.service
sed -i 's|^EnvironmentFile=.*|EnvironmentFile=-/opt/homarr.env|' /etc/systemd/system/homarr.service
chown -R redis:redis /appdata/redis
chmod 755 /appdata/redis
# TODO: change in json
systemctl daemon-reload
cp /opt/homarr/.env /opt/homarr.env

View File

@ -48,6 +48,8 @@ EOF
msg_ok "Installed Homarr"
msg_info "Copying config files"
chown -R redis:redis /appdata/redis
chmod 755 /appdata/redis
cp /opt/homarr/redis.conf /etc/redis/redis.conf
rm /etc/nginx/nginx.conf
mkdir -p /etc/nginx/templates