diff options
author | David P <megver83@parabola.nu> | 2018-05-12 20:10:53 -0300 |
---|---|---|
committer | David P <megver83@parabola.nu> | 2018-05-12 20:10:53 -0300 |
commit | 06e5308d03bf3e9aa23ac1c970a1db9f4c4fc9e4 (patch) | |
tree | 2e3783dfb54dfa2e0b59c0ba524790ef13807dd0 /pcr/filesystem-nosystemd/filesystem.install | |
parent | d0a0f66d2d0c1a5e0c07adbfdc022c6ab9ed1afe (diff) | |
download | abslibre-06e5308d03bf3e9aa23ac1c970a1db9f4c4fc9e4.tar.gz abslibre-06e5308d03bf3e9aa23ac1c970a1db9f4c4fc9e4.tar.bz2 abslibre-06e5308d03bf3e9aa23ac1c970a1db9f4c4fc9e4.zip |
remove packages succeded by their [nonsystemd] versions
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'pcr/filesystem-nosystemd/filesystem.install')
-rw-r--r-- | pcr/filesystem-nosystemd/filesystem.install | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/pcr/filesystem-nosystemd/filesystem.install b/pcr/filesystem-nosystemd/filesystem.install deleted file mode 100644 index 6e78d4583..000000000 --- a/pcr/filesystem-nosystemd/filesystem.install +++ /dev/null @@ -1,54 +0,0 @@ -# args: <group> [options] -_addgroup() { - if ! getent group "$1" >/dev/null && groupadd "$@" >/dev/null; then - need_group_update=1 - fi -} - -# args: <group> [options] -_adduser() { - if ! getent passwd "$1" >/dev/null && useradd "$@" >/dev/null; then - need_passwd_update=1 - fi -} - -post_upgrade() { - _addgroup optical -g 93 - _addgroup audio -g 92 - _addgroup video -g 91 - _addgroup floppy -g 94 - _addgroup storage -g 95 - _addgroup log -g 19 - _addgroup utmp -g 20 - _addgroup power -g 98 - _addgroup network -g 90 - _addgroup games -g 50 - _addgroup uucp -g 14 - _addgroup proc -g 26 - _addgroup http -g 33 - _adduser http -u 33 -d /srv/http -g http -s /usr/bin/nologin - _addgroup scanner -g 96 - _addgroup rfkill -g 24 - _addgroup lock -g 54 - _addgroup input -g 97 - - # update shadow files if needed - if (( need_group_update )); then - grpconv >/dev/null - fi - - if (( need_passwd_update )); then - pwconv >/dev/null - fi - - if ! grep -q '^include /etc/ld.so.conf.d/\*.conf$' etc/ld.so.conf; then - echo 'include /etc/ld.so.conf.d/*.conf' >> etc/ld.so.conf - fi - - # set "Last password change" > 0; otherwise su $user wont work - for user in bin daemon mail ftp http nobody; do - if LANG=C chage -l ${user} | grep -q 'password must be changed'; then - chage -d 14871 ${user} - fi - done -} |