diff --git a/DEBIAN/control b/DEBIAN/control index 70cc77a..63c2023 100644 --- a/DEBIAN/control +++ b/DEBIAN/control @@ -1,8 +1,9 @@ -Package: NOME DO PACOTE +Package: alice-remote-fs Version: 1.0 Section: admin Priority: optional Architecture: amd64 -Depends: DEPENDENCIAS -Maintainer: SEU NOME -Description: META-PACOTE EXEMPLO +Depends: autofs +Maintainer: Carneiro +Description: Meta-pacote para configurar o NFS. + Instala e configura o autofs. diff --git a/DEBIAN/postinst b/DEBIAN/postinst index 8a532bb..32c5361 100755 --- a/DEBIAN/postinst +++ b/DEBIAN/postinst @@ -1,3 +1,4 @@ #!/bin/sh - -# Script executado pós instalação +set -e +# Restart NFS and autofs services +systemctl restart autofs diff --git a/etc/auto.master b/etc/auto.master new file mode 100644 index 0000000..8cd2825 --- /dev/null +++ b/etc/auto.master @@ -0,0 +1,39 @@ +# +# Sample auto.master file +# This is a 'master' automounter map and it has the following format: +# mount-point [map-type[,format]:]map [options] +# For details of the format look at auto.master(5). +# +#/misc /etc/auto.misc +# +# NOTE: mounts done from a hosts map will be mounted with the +# "nosuid" and "nodev" options unless the "suid" and "dev" +# options are explicitly given. +# +#/net -hosts +# +# Include /etc/auto.master.d/*.autofs +# To add an extra map using this mechanism you will need to add +# two configuration items - one /etc/auto.master.d/extra.autofs file +# (using the same line format as the auto.master file) +# and a separate mount map (e.g. /etc/auto.extra or an auto.extra NIS map) +# that is referred to by the extra.autofs file. +# ++dir:/etc/auto.master.d +# +# If you have fedfs set up and the related binaries, either +# built as part of autofs or installed from another package, +# uncomment this line to use the fedfs program map to access +# your fedfs mounts. +#/nfs4 /usr/sbin/fedfs-map-nfs4 nobind +# +# Include central master map if it can be found using +# nsswitch sources. +# +# Note that if there are entries for /net or /misc (as +# above) in the included master map any keys that are the +# same will not be seen as the first read key seen takes +# precedence. +# ++auto.master +/nethome/ /etc/auto.nethome diff --git a/etc/auto.nethome b/etc/auto.nethome new file mode 100644 index 0000000..24b1020 --- /dev/null +++ b/etc/auto.nethome @@ -0,0 +1 @@ +* 172.18.0.19:/nethome/&