initial import
This commit is contained in:
30
samba/samba.install
Normal file
30
samba/samba.install
Normal file
@@ -0,0 +1,30 @@
|
||||
#!/bin/sh
|
||||
|
||||
post_install() {
|
||||
echo ">>> Don't forget to write your file in /etc/samba/smb.conf "
|
||||
echo ">>> for example:"
|
||||
cat <<- EOF
|
||||
[example]
|
||||
path = /home/<your-user>/shared
|
||||
available = yes
|
||||
browseable = yes
|
||||
public = yes
|
||||
writable = yes
|
||||
EOF
|
||||
echo ">>> "
|
||||
echo ">>> You check using smb://<IP>/example in this case"
|
||||
echo ">>> "
|
||||
echo ">>> Set password with: smbpasswd -a <your-user>"
|
||||
echo ">>> or update password with: smbpasswd <your-user>"
|
||||
echo ">>> as root."
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
if [ "$(vercmp $2 4.0.4)" -lt 0 ]; then
|
||||
echo "Major upgrade from samba 3.x to 4.x,"
|
||||
echo "please read the Samba4 migration guide:"
|
||||
echo "http://wiki.samba.org/index.php/Samba4/samba3upgrade/HOWTO"
|
||||
fi
|
||||
post_install "$@"
|
||||
}
|
||||
# vim:set ts=2 sw=2 et:
|
||||
Reference in New Issue
Block a user