fix(ufw): Remove space before commit

Remove the before commit on ufw rules
fix #1607
fix #1620
This commit is contained in:
4s3ti 2022-09-17 11:32:54 +02:00
parent 202c173dd7
commit 955f268db2
No known key found for this signature in database
GPG key ID: AC2D3B898F96BC51

View file

@ -3143,7 +3143,7 @@ confNetwork() {
sed_pattern="${sed_pattern} -j MASQUERADE"
sed_pattern="${sed_pattern} -m comment"
sed_pattern="${sed_pattern} --comment ${VPN}-nat-rule\n"
sed_pattern="${sed_pattern} COMMIT\n"
sed_pattern="${sed_pattern}COMMIT\n"
${SUDO} sed "${sed_pattern}" -i /etc/ufw/before.rules
fi
@ -3173,7 +3173,7 @@ confNetwork() {
sed_pattern="${sed_pattern} -j MASQUERADE"
sed_pattern="${sed_pattern} -m comment"
sed_pattern="${sed_pattern} --comment ${VPN}-nat-rule\n"
sed_pattern="${sed_pattern} COMMIT\n"
sed_pattern="${sed_pattern}COMMIT\n"
${SUDO} sed "${sed_pattern}" -i /etc/ufw/before6.rules
fi
fi