summarylogtreecommitdiffstats
path: root/avs-alexa-sampleapp.install
blob: eaa2e1983185d4549f481b50658c2c26899efd07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
post_install() {
   getent passwd alexa > /dev/null || useradd -d /var/lib/avs-alexa-sampleapp -G audio alexa > /dev/null
   getent group alexa > /dev/null || groupadd -r alexa > /dev/null
   chown alexa:alexa -R /var/lib/avs-alexa-sampleapp
}
 
post_upgrade() {
   getent passwd alexa > /dev/null || useradd -d /var/lib/avs-alexa-sampleapp alexa > /dev/null
   getent group alexa > /dev/null || groupadd -r alexa > /dev/null
   chown alexa:alexa -R /var/lib/avs-alexa-sampleapp
}

post_remove() {
   userdel -rf alexa
}