Skip to content

Commit 600922c

Browse files
committed
Fix wrong sed command.
1 parent f267ba2 commit 600922c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/deb/hestia/postinst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ if [ "$DB_SYSTEM" = 'mysql' ]; then
4646
fi
4747

4848
# Add amd64 to repositories to prevent notifications - https://goo.gl/hmsSV7
49-
if ! grep -q 'amd64' /etc/apt/sources.list.d/nginx.list; then
50-
sed -i s/deb/"deb [arch=amd64]"/g /etc/apt/sources.list.d/nginx.list
49+
if ! grep -q 'arch=amd64' /etc/apt/sources.list.d/nginx.list; then
50+
sed -i s/"deb "/"deb [arch=amd64] "/g /etc/apt/sources.list.d/nginx.list
5151
fi
52-
if ! grep -q 'amd64' /etc/apt/sources.list.d/mariadb.list; then
53-
sed -i s/deb/"deb [arch=amd64]"/g /etc/apt/sources.list.d/mariadb.list
52+
if ! grep -q 'arch=amd64' /etc/apt/sources.list.d/mariadb.list; then
53+
sed -i s/"deb "/"deb [arch=amd64] "/g /etc/apt/sources.list.d/mariadb.list
5454
fi
5555

5656
# Fix named rule for AppArmor - https://goo.gl/SPqHdq

0 commit comments

Comments
 (0)