-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12533 from a-skr/bugfix/12409
Fix file path inconsistencies in accounts_umask_etc_bashrc
- Loading branch information
Showing
13 changed files
with
45 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ide/system/accounts/accounts-session/user_umask/accounts_umask_etc_bashrc/oval/shared.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...stem/accounts/accounts-session/user_umask/accounts_umask_etc_bashrc/tests/missing.fail.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ounts/accounts-session/user_umask/accounts_umask_etc_bashrc/tests/super_compliant.pass.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 9 additions & 2 deletions
11
...system/accounts/accounts-session/user_umask/accounts_umask_etc_bashrc/tests/wrong.fail.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
#!/bin/bash | ||
# packages = bash | ||
|
||
sed -i '/umask/d' /etc/bashrc | ||
echo "umask 000" >> /etc/bashrc | ||
{{% if 'sle' in product or 'ubuntu' in product or 'debian' in product %}} | ||
etc_bash_rc="/etc/bash.bashrc" | ||
{{% else %}} | ||
etc_bash_rc="/etc/bashrc" | ||
{{% endif %}} | ||
|
||
|
||
sed -i '/umask/d' $etc_bash_rc | ||
echo "umask 000" >> $etc_bash_rc | ||
umask 000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 9 additions & 2 deletions
11
.../user_umask/accounts_umask_etc_bashrc/tests/wrong_and_not_at_the_begining_of_line.fail.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
#!/bin/bash | ||
# packages = bash | ||
|
||
sed -i '/umask/d' /etc/bashrc | ||
echo " [ \`umask\` -eq 0 ] && umask 022" >> /etc/bashrc | ||
{{% if 'sle' in product or 'ubuntu' in product or 'debian' in product %}} | ||
etc_bash_rc="/etc/bash.bashrc" | ||
{{% else %}} | ||
etc_bash_rc="/etc/bashrc" | ||
{{% endif %}} | ||
|
||
|
||
sed -i '/umask/d' $etc_bash_rc | ||
echo " [ \`umask\` -eq 0 ] && umask 022" >> $etc_bash_rc | ||
umask 000 |
15 changes: 11 additions & 4 deletions
15
...counts/accounts-session/user_umask/accounts_umask_etc_bashrc/tests/wrong_multiple.fail.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
#!/bin/bash | ||
# packages = bash | ||
|
||
sed -i '/umask/d' /etc/bashrc | ||
echo "umask 000" >> /etc/bashrc | ||
echo "umask 000" >> /etc/bashrc | ||
echo "umask 000" >> /etc/bashrc | ||
{{% if 'sle' in product or 'ubuntu' in product or 'debian' in product %}} | ||
etc_bash_rc="/etc/bash.bashrc" | ||
{{% else %}} | ||
etc_bash_rc="/etc/bashrc" | ||
{{% endif %}} | ||
|
||
|
||
sed -i '/umask/d' $etc_bash_rc | ||
echo "umask 000" >> $etc_bash_rc | ||
echo "umask 000" >> $etc_bash_rc | ||
echo "umask 000" >> $etc_bash_rc | ||
umask 000 |