Optimize post script

This commit is contained in:
wangqi 2022-07-21 14:07:13 +08:00
parent 3b1eac7c05
commit be2fb214c8

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}')
@ -122,6 +124,9 @@ fi
%{_datadir}/deepin-default-settings/fcitx/*.png
%changelog
* Thu Jul 21 2022 wangqia <wangqia@uniontech.com> - 2020.10.26-3
- Optimize post script
* Tue Mar 08 2022 liweiganga <liweiganga@uniontech.com> - 2020.10.26-2
- fix install warning