summarylogtreecommitdiffstats
path: root/youtrack.install
blob: b43da733f03d8eb5399c527a127de4f93bb885d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
post_install() {
  if ! getent group youtrack >/dev/null; then
    groupadd --system youtrack 
  fi
  if ! getent passwd youtrack >/dev/null; then
    useradd --system -c 'youtrack daemon user' -g youtrack -d / -s /bin/false youtrack 
  fi
  chown youtrack:youtrack /var/lib/youtrack
}

post_upgrade() {
  post_install $1
}