Ignore:
Timestamp:
Jun 2, 2012, 5:53:54 PM (12 years ago)
Author:
joergs
Message:

set group permissions

Location:
opsi/server/wsusoffline
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • opsi/server/wsusoffline/wsusoffline.spec

    r1014 r1016  
    5050mkdir -p $RPM_BUILD_ROOT/var/lib/
    5151unzip wsusoffline/%{name}%{ver}.zip -d $RPM_BUILD_ROOT/var/lib/
     52install -d $RPM_BUILD_ROOT/%{DEST_DIR}/temp/
     53
     54
     55# remove windows only stuff
    5256rm -r $RPM_BUILD_ROOT/%{DEST_DIR}/*.exe
    5357rm -r $RPM_BUILD_ROOT/%{DEST_DIR}/*.au3
    5458rm -r $RPM_BUILD_ROOT/%{DEST_DIR}/bin
    5559rm -r $RPM_BUILD_ROOT/%{DEST_DIR}/cmd
    56 chmod    g+w $RPM_BUILD_ROOT/%{DEST_DIR}
    57 chmod g+w $RPM_BUILD_ROOT/%{DEST_DIR}/exclude/
    58 chmod -R g+w $RPM_BUILD_ROOT/%{DEST_DIR}/client/
    59 chmod a+x $RPM_BUILD_ROOT/%{DEST_DIR}/sh/*
    60 chmod g+w $RPM_BUILD_ROOT/%{DEST_DIR}/sh/
    61 install -d -m 775 $RPM_BUILD_ROOT/%{DEST_DIR}/temp
    6260
     61# adapt permissions
     62chmod g+ws $RPM_BUILD_ROOT/%{DEST_DIR}
     63find $RPM_BUILD_ROOT/%{DEST_DIR}/client/ -type d -exec chmod g+ws {} \;
     64chmod g+ws $RPM_BUILD_ROOT/%{DEST_DIR}/exclude/
     65chmod g+ws $RPM_BUILD_ROOT/%{DEST_DIR}/log/
     66chmod g+ws $RPM_BUILD_ROOT/%{DEST_DIR}/iso/
     67chmod g+ws $RPM_BUILD_ROOT/%{DEST_DIR}/sh/
     68chmod a+x  $RPM_BUILD_ROOT/%{DEST_DIR}/sh/*
     69chmod g+ws $RPM_BUILD_ROOT/%{DEST_DIR}/temp/
     70
     71
     72# install start wrapper scripts
    6373mkdir -p $RPM_BUILD_ROOT/usr/bin/
    6474install wsusoffline/*.sh $RPM_BUILD_ROOT/usr/bin/
     75
     76
    6577
    6678%clean
     
    6981%pre
    7082getent group wsusoffline >/dev/null || groupadd -r wsusoffline
    71 exit 0
     83
    7284
    7385%files
    7486%defattr(-,root,root)
    7587/usr/bin/wsus-*.sh
     88%dir %{DEST_DIR}
    7689# #{DEST_DIR}/bin
    7790# #{DEST_DIR}/cmd
     
    8194 
    8295%defattr(-,root,wsusoffline)
    83 %dir %{DEST_DIR}
    8496%{DEST_DIR}/client/
    8597%{DEST_DIR}/exclude/
  • opsi/server/wsusoffline/wsusoffline/wsus-create-iso-image.sh

    r1015 r1016  
    66fi
    77cd /var/lib/wsusoffline/sh
     8umask 0002
    89./CreateISOImage.sh "$@"
  • opsi/server/wsusoffline/wsusoffline/wsus-download-updates.sh

    r1015 r1016  
    88fi
    99cd ${DEST}/sh
     10umask 0002
    1011./DownloadUpdates.sh "$@"
Note: See TracChangeset for help on using the changeset viewer.