Fix commands execution for shell
PROD-34754
Change-Id: I584bd2984bc06183581770dde1f58e823b1a44a1
diff --git a/linux/system/auth.sls b/linux/system/auth.sls
index 5cb3798..e83f3bb 100644
--- a/linux/system/auth.sls
+++ b/linux/system/auth.sls
@@ -86,7 +86,7 @@
linux_auth_pam_add_profiles_mkhomedir_enable:
cmd.run:
- name: /usr/local/bin/pam-add-profile {{ pam_modules_enable }}
- - unless: "[[ `grep -c pam_mkhomedir.so /etc/pam.d/common-session` -ne 0 ]]"
+ - unless: "[ `grep -c pam_mkhomedir.so /etc/pam.d/common-session` -ne 0 ]"
- require:
- file: linux_auth_pam_add_profile
linux_auth_pam_add_profiles_mkhomedir_update:
@@ -103,7 +103,7 @@
linux_auth_pam_remove_profiles_mkhomedir:
cmd.run:
- name: /usr/sbin/pam-auth-update --remove {{ pam_modules_disable }}
- - onlyif: "[[ `grep -c pam_mkhomedir.so /etc/pam.d/common-session` -ne 0 ]]"
+ - onlyif: "[ `grep -c pam_mkhomedir.so /etc/pam.d/common-session` -ne 0 ]"
- require:
- pkg: linux_auth_pam_packages
{%- endif %}
@@ -112,7 +112,7 @@
linux_auth_pam_add_profiles_ldap:
cmd.run:
- name: /usr/local/bin/pam-add-profile {{ pam_modules_enable }}
- - unless: "[[ `debconf-get-selections | grep libpam-runtime/profiles | grep -c ldap` -ne 0 ]]"
+ - unless: "[ `debconf-get-selections | grep libpam-runtime/profiles | grep -c ldap` -ne 0 ]"
- require:
- file: linux_auth_pam_add_profile
- pkg: linux_auth_ldap_packages
@@ -120,7 +120,7 @@
linux_auth_pam_remove_profiles_ldap:
cmd.run:
- name: /usr/sbin/pam-auth-update --remove {{ pam_modules_disable }}
- - onlyif: "[[ `debconf-get-selections | grep libpam-runtime/profiles | grep -c ldap` -ne 0 ]]"
+ - onlyif: "[ `debconf-get-selections | grep libpam-runtime/profiles | grep -c ldap` -ne 0 ]"
- require:
- pkg: linux_auth_pam_packages
{%- endif %}