Skip to content
Snippets Groups Projects
Commit 1ba75dae authored by tamaina's avatar tamaina
Browse files

fix

parent 6f7d3385
No related branches found
No related tags found
No related merge requests found
...@@ -692,36 +692,33 @@ if [ $method != "systemd" ]; then ...@@ -692,36 +692,33 @@ if [ $method != "systemd" ]; then
systemctl restart postgresql; systemctl restart postgresql;
fi fi
#endregion #endregion
fi
#endregion
#region modify redis conf #region modify redis conf
if $redis_local; then if $redis_local; then
tput setaf 3; tput setaf 3;
echo "Process: modify redis confs;" echo "Process: modify redis confs;"
tput setaf 7; tput setaf 7;
if [ -f /etc/redis/redis.conf ]; then
echo "requirepass $redis_pass" > /etc/redis/misskey.conf
$method != "systemd" && echo "bind $docker_host_ip" >> /etc/redis/misskey.conf
if [ -f /etc/redis/redis.conf ]; then if ! grep "include /etc/redis/misskey.conf" /etc/redis/redis.conf; then
cat > /etc/redis/docker.conf <<-_EOF echo "include /etc/redis/misskey.conf" >> /etc/redis/redis.conf;
bind $docker_host_ip
requirepass $redis_pass
_EOF
if ! grep "include /etc/redis/docker.conf" /etc/redis/redis.conf; then
echo "include /etc/redis/docker.conf" >> /etc/redis/redis.conf;
else
echo " skip"
fi
else else
echo "Couldn't find /etc/redis/redis.conf." echo " skip"
echo "Please modify redis config like following in another shell."
echo ""
echo "bind $docker_host_ip"
echo "requirepass $redis_pass"
echo ""
read -r -p "Press Enter key to continue> "
fi fi
else
systemctl restart redis-server; echo "Couldn't find /etc/redis/redis.conf."
echo "Please modify redis config in another shell like following."
echo ""
$method != "systemd" && echo "requirepass $redis_pass"
echo "bind $docker_host_ip"
echo ""
read -r -p "Press Enter key to continue> "
fi fi
#endregion systemctl restart redis-server;
fi fi
#endregion #endregion
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment