Sign in

简柏林 / thingskit · Files

GitLab

  • Go to dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Network
  • thingskit
  • ..
  • deb
  • preinst
  • ThingsBoard Web UI Microservice.
    4bf57ebf
    Igor Kulikov authored
    2018-10-02 17:42:09 +0300  
    Browse Files »
preinst 459 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/bin/sh

if ! getent group ${pkg.user} >/dev/null; then
    addgroup --system ${pkg.user}
fi

if ! getent passwd ${pkg.user} >/dev/null; then
    adduser --quiet \
            --system \
            --ingroup ${pkg.user} \
            --quiet \
            --disabled-login \
            --disabled-password \
            --home ${pkg.installFolder} \
            --no-create-home \
            -gecos "Thingsboard application" \
            ${pkg.user}
fi