File: flatpak.postinst

package info (click to toggle)
flatpak 1.16.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,028 kB
  • sloc: ansic: 101,055; xml: 11,453; sh: 4,871; python: 2,251; yacc: 1,236; makefile: 86; csh: 20
file content (25 lines) | stat: -rwxr-xr-x 521 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

set -e

#DEBHELPER#

if [ "$1" = configure ]; then
    adduser \
        --force-badname \
        --gecos "Flatpak system-wide installation helper" \
        --group \
        --home /nonexistent \
        --no-create-home \
        --quiet \
        --system \
        _flatpak

    # Run a do-nothing command (it just lists configured remotes) for
    # its side-effect of initializing the shared system-wide repository.
    flatpak remote-list --system >/dev/null || :
fi

exit 0

# vim:set sw=4 sts=4 et: