Search
j0ke.net Open Build Service
>
Projects
>
internetx
>
ix-rsyncbackup
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 14
[-]
[+]
Changed
_service:set_version:ix-rsyncbackup.spec
@@ -4,7 +4,7 @@ Name: ix-rsyncbackup Summary: InterNetX GmbH Rsync Backup Script -Version: 0.0.9989 +Version: 0.0.9993 Release: 0 Url: http://www.internetx.de License: GPLv2 @@ -54,9 +54,15 @@ %post if [ -f /etc/sudoers ] ; then - if [ -z "`grep ^%{buser} /etc/sudoers`" ] ; then + if [ -z "`grep ^%{buser} /etc/sudoers | grep /usr/bin/rsync`" ] ; then echo "%{buser} ALL = NOPASSWD: /usr/bin/rsync" >> /etc/sudoers fi + if [ -z "`grep ^%{buser} /etc/sudoers | grep /bin/sed`" ] ; then + echo "%{buser} ALL = NOPASSWD: /bin/sed" >> /etc/sudoers + fi + if [ -z "`grep ^%{buser} /etc/sudoers | grep /usr/bin/tee`" ] ; then + echo "%{buser} ALL = NOPASSWD: /usr/bin/tee" >> /etc/sudoers + fi if [ -n "`grep -E '(^Defaults *requiretty)' /etc/sudoers`" ] ; then sed -i s@"^Defaults *requiretty"@"#Defaults requiretty"@g /etc/sudoers fi
Changed
_service:tar_scm:ix-rsyncbackup-0.0.9993.tar
^