!11 Optimize post script

From: @weidongkl 
Reviewed-by: @yeqinglong01 
Signed-off-by: @
This commit is contained in:
openeuler-ci-bot 2022-03-15 09:21:44 +00:00 committed by Gitee
commit 339ec6e375
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: deepin-default-settings
Version: 2020.10.26
Release: 2
Release: 3
Summary: default settings for deepin destkop environment
License: GPLv3
URL: https://github.com/linuxdeepin/default-settings
@ -54,7 +54,9 @@ if [ ! -f /root/Desktop/dde-computer.desktop ] && [ ! -f /root/Desktop/dde-trash
install -m644 /etc/skel/Music/bensound-sunny.mp3 /root//Music/ || true
fi
for i in $(getent passwd | grep -v nologin | grep -v halt | grep -v shutdown | grep -v sync); do
declare -a passwd_array
mapfile -t passwd_array <<<"$(getent passwd | grep -v nologin | grep -v halt | grep -v shutdown | grep -v sync)"
for i in "${passwd_array[@]}"; do
userid=$(echo "$i" | awk -F ':' '{print $3}')
groupid=$(echo "$i" | awk -F ':' '{print $4}')
userhome=$(echo "$i" | awk -F ':' '{print $6}')
@ -121,6 +123,9 @@ fi
%{_datadir}/deepin-default-settings/fcitx/*.png
%changelog
* Tue Mar 15 2022 weidong <weidong@uniontech.com> - 2020.10.26-3
- Optimize post script
* Tue Mar 08 2022 liweiganga <liweiganga@uniontech.com> - 2020.10.26-2
- fix install warning