Debian Codegraph @

debian/ola.postinst

raw
1 #!/bin/sh -e
2 # postinst script for ola
3
4 #create the olad user, add it to groups
5 getent passwd olad > /dev/null || adduser --system --home /usr/lib/olad --no-create-home olad
6 getent group olad > /dev/null || addgroup --system olad
7 groups olad | grep dialout > /dev/null || adduser olad dialout
8 groups olad | grep plugdev > /dev/null || adduser olad plugdev
9
10 # setup the config dir
11 chown -R olad:olad /etc/ola
12 chmod g+s /etc/ola
13
14 # Perform the migration
15 dpkg-maintscript-helper dir_to_symlink /usr/share/olad/www/new/libs/jquery/js /usr/share/javascript/jquery 0.10.9.nojsmin-1 ola -- "$@"
16 dpkg-maintscript-helper dir_to_symlink /usr/share/olad/www/new/libs/angular/js /usr/share/javascript/angular.js 0.10.9.nojsmin-1 ola -- "$@"
17 dpkg-maintscript-helper dir_to_symlink /usr/share/olad/www/new/libs/bootstrap /usr/share/javascript/bootstrap 0.10.9.nojsmin-1 ola -- "$@"
18
19 #DEBHELPER#
20
21 exit 0