Update setup.sh

small change of -ri to -Ei on sed command
This commit is contained in:
Andrew Hurley 2020-04-08 22:41:23 +10:00 committed by GitHub
parent c5f984dc3a
commit e6d28babb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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"