summaryrefslogtreecommitdiff
path: root/community/smbnetfs/smbnetfs.install
blob: d1c87406f0e4aace30a0b85dcc8937364bf2563d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
post_install() {
  echo "-- To use rc-script you should:"
  echo "--   * set user_allow_other option in /etc/fuse.conf"

  chown -R nobody.nobody /etc/smbnetfs/.smb && \
  mkdir -p /mnt/smbnet && \
  chown nobody.nobody /mnt/smbnet && \
  chmod 0777 /mnt/smbnet
}

pre_upgrade() {
  /etc/rc.d/smbnetfs stop 2>/dev/null 1>/dev/null
  /bin/true
}

post_upgrade() {
  echo "-- You should set user_allow_other option in /etc/fuse.conf to use rc-script"
  echo "--   * set user_allow_other option in /etc/fuse.conf"

  chown -R nobody.nobody /etc/smbnetfs/.smb && \
  mkdir -p /mnt/smbnet && \
  chown nobody.nobody /mnt/smbnet && \
  chmod 0777 /mnt/smbnet
}