2015-09-04 | Paul Boddie | file changeset files shortlog | Added docstrings. |
paul@634 | 1 | #!/bin/sh |
paul@634 | 2 | |
paul@634 | 3 | USER=imip-agent |
paul@634 | 4 | GROUP=lmtp |
paul@634 | 5 | INSTALL_DIR=/var/lib/imip-agent |
paul@634 | 6 | WEB_INSTALL_DIR=/var/www/imip-agent |
paul@634 | 7 | |
paul@634 | 8 | for DIR in "$INSTALL_DIR"/store "$INSTALL_DIR"/preferences "$WEB_INSTALL_DIR"/static ; do |
paul@634 | 9 | mkdir -p "$DIR" |
paul@634 | 10 | chown "$USER" "$DIR" |
paul@634 | 11 | chgrp "$GROUP" "$DIR" |
paul@634 | 12 | chmod g+ws "$DIR" |
paul@634 | 13 | done |