updated on Thu Jan 5 13:17:10 UTC 2012
[aur-mirror.git] / ws / INSTALL
blob305ce0e3957490a4aa9358bbb2abda905c6a8422
1 firstline="## Installed from ws(winshare)##"
2 lastline="################################"
3 varsudo="${firstline}\n### SAMBA ###\nCmnd_Alias SAMBA = /bin/mount, /bin/umount, /sbin/mount.cifs\nALL ALL=(ALL) NOPASSWD: SAMBA\n${lastline}\n"
5 post_install() {
6   echo -e "$varsudo" >> /etc/sudoers  
7   cat << '_EOF'
8   
9   /etc/sudoers file was configured to allow all users to mount and unmount samba shares.
11 _EOF
14 post_remove() {
15   sed -i "/$firstline/,/$lastline/ d" /etc/sudoers
16   
17   cat << '_EOF'
18   
19   /etc/sudoers was changed. The automatic configuration made by winshare during installation was removed.
21 _EOF
24 # vim:set ts=2 sw=2 et: