Changes of Revision 14
[-] | Changed | _service:set_version:ix-rsyncbackup.spec |
x 1
2 3 Name: ix-rsyncbackup 4 Summary: InterNetX GmbH Rsync Backup Script 5 -Version: 0.0.9989 6 +Version: 0.0.9993 7 Release: 0 8 Url: http://www.internetx.de 9 License: GPLv2 10
11 12 %post 13 if [ -f /etc/sudoers ] ; then 14 - if [ -z "`grep ^%{buser} /etc/sudoers`" ] ; then 15 + if [ -z "`grep ^%{buser} /etc/sudoers | grep /usr/bin/rsync`" ] ; then 16 echo "%{buser} ALL = NOPASSWD: /usr/bin/rsync" >> /etc/sudoers 17 fi 18 + if [ -z "`grep ^%{buser} /etc/sudoers | grep /bin/sed`" ] ; then 19 + echo "%{buser} ALL = NOPASSWD: /bin/sed" >> /etc/sudoers 20 + fi 21 + if [ -z "`grep ^%{buser} /etc/sudoers | grep /usr/bin/tee`" ] ; then 22 + echo "%{buser} ALL = NOPASSWD: /usr/bin/tee" >> /etc/sudoers 23 + fi 24 if [ -n "`grep -E '(^Defaults *requiretty)' /etc/sudoers`" ] ; then 25 sed -i s@"^Defaults *requiretty"@"#Defaults requiretty"@g /etc/sudoers 26 fi 27 |
||
Changed | _service:tar_scm:ix-rsyncbackup-0.0.9993.tar ^ |