Fix login.defs config for tumbleweed
On openSUSE Tumbleweed, the login.defs config file was moved under /usr[1]. This change allows the login.defs config change to work for both old and new locations. [1] https://build.opensuse.org/request/show/736424 Change-Id: Ia5eff5e7b0709836278361b1b8daa788619eff75
This commit is contained in:
parent
20e468c604
commit
4fb5a57b8a
1 changed files with 6 additions and 1 deletions
|
@ -6,4 +6,9 @@ fi
|
|||
set -eu
|
||||
set -o pipefail
|
||||
|
||||
sed -i -e "s,^USERGROUPS_ENAB.*$,USERGROUPS_ENAB yes," /etc/login.defs
|
||||
if [[ ${DIB_RELEASE} == tumbleweed ]] ; then
|
||||
login_defs=/usr/etc/login.defs
|
||||
else
|
||||
login_defs=/etc/login.defs
|
||||
fi
|
||||
sed -i -e "s,^USERGROUPS_ENAB.*$,USERGROUPS_ENAB yes," $login_defs
|
||||
|
|
Loading…
Reference in a new issue