XYZ File Manager
Current Path:
/lib/rpm
lib
/
rpm
/
📁
..
📄
alt-nodejs18-fixdep
(3.48 KB)
📄
alt-nodejs18-provide.sh
(70 B)
📄
alt-nodejs18-require.sh
(69 B)
📄
alt-nodejs18-symlink-deps
(5.21 KB)
📄
alt-nodejs18.prov
(1.92 KB)
📄
alt-nodejs18.req
(6.75 KB)
📄
alt-nodejs18_native.req
(40 B)
📄
alt-nodejs20-fixdep
(3.48 KB)
📄
alt-nodejs20-provide.sh
(70 B)
📄
alt-nodejs20-require.sh
(69 B)
📄
alt-nodejs20-symlink-deps
(5.21 KB)
📄
alt-nodejs20.prov
(1.92 KB)
📄
alt-nodejs20.req
(6.75 KB)
📄
alt-nodejs20_native.req
(44 B)
📄
alt-nodejs22-fixdep
(3.48 KB)
📄
alt-nodejs22-provide.sh
(70 B)
📄
alt-nodejs22-require.sh
(69 B)
📄
alt-nodejs22-symlink-deps
(5.21 KB)
📄
alt-nodejs22.prov
(1.92 KB)
📄
alt-nodejs22.req
(6.75 KB)
📄
alt-nodejs22_native.req
(44 B)
📄
alt-nodejs24-fixdep
(3.48 KB)
📄
alt-nodejs24-provide.sh
(70 B)
📄
alt-nodejs24-require.sh
(69 B)
📄
alt-nodejs24-symlink-deps
(5.21 KB)
📄
alt-nodejs24.prov
(1.92 KB)
📄
alt-nodejs24.req
(6.75 KB)
📄
alt-nodejs24_native.req
(43 B)
📄
brp-boot-efi-times
(1.43 KB)
📄
brp-scl-compress
(1.77 KB)
📄
brp-scl-python-bytecompile
(3.04 KB)
📄
cmake.prov
(2.92 KB)
📄
cmake.req
(2.29 KB)
📁
fileattrs
📄
gstreamer1.prov
(950 B)
📁
lua
📄
macros
(43.12 KB)
📁
macros.d
📁
platform
📁
redhat
📄
rpm.daily
(296 B)
📄
rpm.log
(61 B)
📄
rpm.supp
(688 B)
📄
rpm2cpio.sh
(1.56 KB)
📄
rpmdb_dump
(41 B)
📄
rpmdb_load
(41 B)
📄
rpmpopt-4.16.1.3
(11.83 KB)
📄
rpmrc
(17.24 KB)
📄
scldeps.sh
(258 B)
📄
sysusers.generate-pre.sh
(2.22 KB)
📄
sysusers.prov
(605 B)
📄
tgpg
(937 B)
Editing: sysusers.generate-pre.sh
#!/usr/bin/bash # -*- mode: shell-script; indent-tabs-mode: true; tab-width: 4; -*- # This script turns sysuser.d files into scriptlets mandated by Fedora # packaging guidelines. The general idea is to define users using the # declarative syntax but to turn this into traditional scriptlets. user() { user="$1" uid="$2" desc="$3" group="$4" home="$5" shell="$6" [ "$desc" = '-' ] && desc= { [ "$home" = '-' ] || [ "$home" = '' ]; } && home=/ { [ "$shell" = '-' ] || [ "$shell" = '' ]; } && shell=/usr/sbin/nologin if [ "$uid" = '-' ] || [ "$uid" = '' ]; then cat <<-EOF getent passwd '$user' >/dev/null || \\ useradd -r -g ${group@Q} -d ${home@Q} -s ${shell@Q} -c ${desc@Q} ${user@Q} || : EOF else cat <<-EOF if ! getent passwd ${user@Q} >/dev/null; then if ! getent passwd ${uid@Q} >/dev/null; then useradd -r -u ${uid@Q} -g ${group@Q} -d ${home@Q} -s ${shell@Q} -c ${desc@Q} ${user@Q} || : else useradd -r -g ${group@Q} -d ${home@Q} -s ${shell@Q} -c ${desc@Q} ${user@Q} || : fi fi EOF fi } group() { group="$1" gid="$2" if [ "$gid" = '-' ]; then cat <<-EOF getent group ${group@Q} >/dev/null || groupadd -r ${group@Q} || : EOF else cat <<-EOF getent group ${group@Q} >/dev/null || groupadd -f -g ${gid@Q} -r ${group@Q} || : EOF fi } usermod() { user="$1" group="$2" cat <<-EOF if getent group ${group@Q} >/dev/null; then usermod -a -G ${group@Q} '$user' || : fi EOF } parse() { while read -r line || [ -n "$line" ] ; do { [ "${line:0:1}" = '#' ] || [ "${line:0:1}" = ';' ]; } && continue line="${line## *}" [ -z "$line" ] && continue eval "arr=( $line )" case "${arr[0]}" in ('u') if [[ "${arr[2]}" == *":"* ]]; then user "${arr[1]}" "${arr[2]%:*}" "${arr[3]}" "${arr[2]#*:}" "${arr[4]}" "${arr[5]}" else group "${arr[1]}" "${arr[2]}" user "${arr[1]}" "${arr[2]}" "${arr[3]}" "${arr[1]}" "${arr[4]}" "${arr[5]}" fi ;; ('g') group "${arr[1]}" "${arr[2]}" ;; ('m') group "${arr[2]}" "-" user "${arr[1]}" "-" "" "${arr[1]}" "" "" usermod "${arr[1]}" "${arr[2]}" ;; esac done } for fn in "$@"; do [ -e "$fn" ] || continue echo "# generated from $(basename "$fn")" parse <"$fn" done
Upload File
Create Folder