Update setup.sh
small change of -ri to -Ei on sed command
This commit is contained in:
parent
c5f984dc3a
commit
e6d28babb3
2
setup.sh
2
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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue