21 lines
352 B
Bash
21 lines
352 B
Bash
#!/bin/sh
|
|
|
|
case $2 in
|
|
PRE-INSTALL)
|
|
;;
|
|
POST-INSTALL)
|
|
mkdir -m 755 /var/mnogosearch
|
|
mkdir -m 700 /var/mnogosearch/cache
|
|
mkdir -m 755 /var/mnogosearch/raw
|
|
mkdir -m 755 /var/mnogosearch/splitter
|
|
mkdir -m 755 /var/mnogosearch/tree
|
|
chown -R nobody:nogroup /var/mnogosearch
|
|
;;
|
|
*)
|
|
echo "Unexpected Argument $2!!!"
|
|
exit 1
|
|
;;
|
|
esac
|
|
exit 0
|
|
|