mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-20 09:36:34 +02:00
The etc/shadow- file may not exist when chown is run. Only run chown when the file exists to prevent an error message.
14 lines
453 B
Bash
14 lines
453 B
Bash
#!/bin/sh
|
|
|
|
# update color_prompt.sh symlink (if exists) after we renamed color_prompt to
|
|
# color_prompt.sh.disabled.
|
|
case "$(readlink etc/profile.d/color_prompt.sh 2>/dev/null || true)" in
|
|
color_prompt) ln -sf color_prompt.sh.disabled etc/profile.d/color_prompt.sh;;
|
|
esac
|
|
|
|
# the /etc/group file is created after /etc/shadow. Needed to apply the group
|
|
# properly.
|
|
chown root:shadow etc/shadow
|
|
[ -e etc/shadow- ] && chown root:shadow etc/shadow-
|
|
|
|
exit 0
|