Skip to content

Commit

Permalink
modify code as codereview
Browse files Browse the repository at this point in the history
Signed-off-by: ZouYuhua <[email protected]>
  • Loading branch information
ZouYuhua committed Jul 3, 2024
1 parent d81cf7c commit f9b7c6f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autoinstall/SLE/15/SP3/SLED/autoinst.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1542,6 +1542,8 @@
{% if new_user is defined and new_user != 'root' %}
echo '{{ new_user }} ALL=(ALL) NOPASSWD:ALL' >/etc/sudoers.d/{{ new_user }}
{% endif %}
echo 'Mask service packagekit.service' >/dev/ttyS0
systemctl mask packagekit >/dev/ttyS0
echo '{{ autoinstall_complete_msg }}' >/dev/ttyS0
]]>
</source>
Expand Down
2 changes: 2 additions & 0 deletions autoinstall/SLE/15/SP3/SLES/autoinst.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1437,6 +1437,8 @@
{% if new_user is defined and new_user != 'root' %}
echo '{{ new_user }} ALL=(ALL) NOPASSWD:ALL' >/etc/sudoers.d/{{ new_user }}
{% endif %}
echo 'Mask service packagekit.service' >/dev/ttyS0
systemctl mask packagekit >/dev/ttyS0
echo '{{ autoinstall_complete_msg }}' >/dev/ttyS0
]]>
</source>
Expand Down
2 changes: 2 additions & 0 deletions autoinstall/SLE/15/SP3/SLES_Minimal/autoinst.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,8 @@
{% if new_user is defined and new_user != 'root' %}
echo '{{ new_user }} ALL=(ALL) NOPASSWD:ALL' >/etc/sudoers.d/{{ new_user }}
{% endif %}
echo 'Mask service packagekit.service' >/dev/ttyS0
systemctl mask packagekit >/dev/ttyS0
echo '{{ autoinstall_complete_msg }}' >/dev/ttyS0
]]>
</source>
Expand Down
2 changes: 2 additions & 0 deletions autoinstall/SLE/15/SP4/SLED/autoinst.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1515,6 +1515,8 @@
{% if new_user is defined and new_user != 'root' %}
echo '{{ new_user }} ALL=(ALL) NOPASSWD:ALL' >/etc/sudoers.d/{{ new_user }}
{% endif %}
echo 'Mask service packagekit.service' >/dev/ttyS0
systemctl mask packagekit >/dev/ttyS0
echo '{{ autoinstall_complete_msg }}' >/dev/ttyS0
]]>
</source>
Expand Down

0 comments on commit f9b7c6f

Please sign in to comment.