diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2017-12-17 16:52:22 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2017-12-17 16:52:22 -0500 |
commit | 0d1de9a2c77798a18f368b80334664f5952684bc (patch) | |
tree | ff9b7002be9d970cb491c3c71eda3c1e29faed23 /libre/filesystem/filesystem.install | |
parent | 18cc9ec7fa83a01503e2038580e2cde7dd4a9dc7 (diff) | |
download | abslibre-0d1de9a2c77798a18f368b80334664f5952684bc.tar.gz abslibre-0d1de9a2c77798a18f368b80334664f5952684bc.tar.bz2 abslibre-0d1de9a2c77798a18f368b80334664f5952684bc.zip |
filesystem-2017.10-2.parabola1: updating version
Diffstat (limited to 'libre/filesystem/filesystem.install')
-rw-r--r-- | libre/filesystem/filesystem.install | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/libre/filesystem/filesystem.install b/libre/filesystem/filesystem.install deleted file mode 100644 index 478c049e7..000000000 --- a/libre/filesystem/filesystem.install +++ /dev/null @@ -1,65 +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 - _addgroup systemd-journal -g 190 - _addgroup systemd-journal-gateway -g 191 - _adduser systemd-journal-gateway -u 191 -g 191 -d / -s /usr/bin/nologin - _addgroup systemd-timesync -g 192 - _adduser systemd-timesync -u 192 -g 192 -d / -s /usr/bin/nologin - _addgroup systemd-network -g 193 - _adduser systemd-network -u 193 -g 193 -d / -s /usr/bin/nologin - _addgroup systemd-bus-proxy -g 194 - _adduser systemd-bus-proxy -u 194 -g 194 -d / -s /usr/bin/nologin - _addgroup systemd-resolve -g 195 - _adduser systemd-resolve -u 195 -g 195 -d / -s /usr/bin/nologin - - # 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 -} |