Remove postinst manipulation as its not needed. SKEL is copied at user creation, psd at first run

Also fix executing bit at armbian-firstlogin script
This commit is contained in:
Igor 2023-05-17 13:43:59 +02:00 committed by Ricardo Pardini
parent 7d72d18bb0
commit aba5df4689
2 changed files with 0 additions and 35 deletions

View File

@ -1,35 +0,0 @@
#
# copy skel to all local users, fix permission and add sudoers for profile sync daemon
#
while IFS=':' read -r login pass uid gid uname homedir comment; do
if [ "$gid" -ge 1000 ] && [ "$gid" -lt "60000" ]; then
# copy skel
sudo cp -R /etc/skel/. $homedir
# fix permission
find /etc/skel/ -mindepth 1 -maxdepth 3 -type d | sed "s|\/etc\/skel|$homedir|" | xargs chown $uid.$gid
# copy PSD
if ! sudo grep "psd-overlay-helper" /etc/sudoers; then
echo "${login} ALL=(ALL) NOPASSWD: /usr/bin/psd-overlay-helper" | sudo tee -a /etc/sudoers
fi
fi
done < /etc/passwd
#
# enable profile sync daemon
#
systemctl --user enable psd.service || true >/dev/null 2>&1
systemctl --user start psd.service || true >/dev/null 2>&1
#
# gnome logo hack
#
cp /usr/share/pixmaps/armbian/armbian.png /usr/share/pixmaps/ubuntu-logo-icon.png
cp /usr/share/pixmaps/armbian/armbian.png /usr/share/pixmaps/ubuntu-logo-dark.png

0
packages/bsp/common/usr/lib/armbian/armbian-firstlogin Normal file → Executable file
View File