summaryrefslogtreecommitdiff
path: root/debian/vyos-1x.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/vyos-1x.postinst')
-rw-r--r--debian/vyos-1x.postinst4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/vyos-1x.postinst b/debian/vyos-1x.postinst
index 959e1d486..d92fd8233 100644
--- a/debian/vyos-1x.postinst
+++ b/debian/vyos-1x.postinst
@@ -25,8 +25,8 @@ fi
for file in /etc/pam.d/sshd /etc/pam.d/login
do
PAM_CONFIG="auth required pam_google_authenticator.so nullok"
- grep -qF -- "$PAM_CONFIG" $file || \
- sed -i '/^@include common-auth/a \\n# Check 2FA/MFA authentication token if enabled (per user)\n$PAM_CONFIG' $file
+ grep -qF -- "${PAM_CONFIG}" $file || \
+ sed -i "/^@include common-auth/a # Check 2FA/MFA authentication token if enabled (per user)\n${PAM_CONFIG}" $file
done
# Add RADIUS operator user for RADIUS authenticated users to map to