Browse Source

Fix rc.psd

rocket-config
mid-kid 6 years ago
parent
commit
82445ba363
  1. 2
      root/etc/rc.d/rc.psd

2
root/etc/rc.d/rc.psd

@ -21,7 +21,7 @@ scan_users() {
group="$(getent passwd $user | cut -d: -f4)" group="$(getent passwd $user | cut -d: -f4)"
home="$(getent passwd $user | cut -d: -f6)" home="$(getent passwd $user | cut -d: -f6)"
shell="$(getent passwd $user | cut -d: -f7)" shell="$(getent passwd $user | cut -d: -f7)"
if [ "$group" != "0" -a "$home" -a "$home" != "/" -a "$(grep $shell /etc/shells)" ]; then if [ "$group" != "0" -a "$home" -a "$home" != "/" -a "$(fgrep -x "$shell" /etc/shells)" ]; then
config="$(su - $user -c 'echo $XDG_CONFIG_HOME')" config="$(su - $user -c 'echo $XDG_CONFIG_HOME')"
[ ! "$config" ] && config="$home/.config" [ ! "$config" ] && config="$home/.config"
if [ -f "$config/psd/psd.conf" ]; then if [ -f "$config/psd/psd.conf" ]; then

Loading…
Cancel
Save