From e6d28babb30059b3b9eef477ba8f89809c9830cf Mon Sep 17 00:00:00 2001 From: Andrew Hurley Date: Wed, 8 Apr 2020 22:41:23 +1000 Subject: [PATCH] Update setup.sh small change of -ri to -Ei on sed command --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 5870159..867c913 100755 --- a/setup.sh +++ b/setup.sh @@ -58,7 +58,7 @@ rm -f /var/run/apache2/apache2.pid echo "hacking www-data and apt-mirror to become PUID=$PUID PGID=$PGID" SEDEX="s~(www-data|apt-mirror):x:[0-9]+:[0-9]+:~\1:x:${PUID}:${PGID}:~g" -sed -ri "$SEDEX" /etc/passwd +sed -Ei "$SEDEX" /etc/passwd echo "regex: $SEDEX" echo "-------------------------------------" grep -E '(www-data|apt-mirror)' /etc/passwd |sed -E "s~^(.*)$~>>> \1~g"