Skip to content

Commit

Permalink
Added '--follow-symlinks' to fix breaking redis bug
Browse files Browse the repository at this point in the history
  • Loading branch information
greiginsydney authored Nov 28, 2020
1 parent 1ff7f09 commit 298a677
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Raspberry Pi/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,10 @@ install_website ()
#OK, as we're going to insert a new line, let's make sure another inappropriate line doesn't already exist:
if grep -q "^ExecStartPost" /etc/systemd/system/redis.service;
then
sed -i 's|^ExecStartPost.*|ExecStartPost=/bin/sleep 1|'g /etc/systemd/system/redis.service
sed -i --follow-symlinks 's|^ExecStartPost.*|ExecStartPost=/bin/sleep 1|'g /etc/systemd/system/redis.service
else
#NO? OK, then just insert the new line:
sed -i "/^ExecStart=/a ExecStartPost=/bin/sleep 1" /etc/systemd/system/redis.service
sed -i --follow-symlinks "/^ExecStart=/a ExecStartPost=/bin/sleep 1" /etc/systemd/system/redis.service
fi
fi

Expand Down

0 comments on commit 298a677

Please sign in to comment.