Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:mbhangui
iwebadmin
_service:extract_file:archpkg.install
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:extract_file:archpkg.install of Package iwebadmin
_prefix=/usr _sysconfdir=/etc/indimail fixperms() { if [ $# -eq 3 ] ; then # directory lin=$2 file=$3 if [ ! -d $file ] ; then return 0 fi elif [ $# = 2 ] ; then # file lin=$1 file=$2 if [ ! -f $file ] ; then return 0 fi fi perm=`echo $lin|cut -d\( -f2 | cut -d, -f1` perm_f1=`echo $perm | cut -c1` own=`echo $lin|cut -d\( -f2 | cut -d, -f2` grp=`echo $lin|cut -d\( -f2 | cut -d, -f3|cut -d\) -f1` if [ $perm_f1 -eq 0 ] ; then /bin/chown $own:$grp $file /bin/chmod $perm $file else echo $file /bin/chown $own:$grp $file /bin/chmod $perm $file fi } post_install() { if [ -f ${_sysconfdir}/iwebadmin.perms ] ; then echo "Fixing Permissions" ( /bin/grep -v "^#" ${_sysconfdir}/iwebadmin.perms | while read line do fixperms $line done ) > ${_sysconfdir}/iwebadmin-stat.override fi } post_upgrade() { if [ -f ${_sysconfdir}/iwebadmin.perms ] ; then echo "Fixing Permissions" ( /bin/grep -v "^#" ${_sysconfdir}/iwebadmin.perms | while read line do fixperms $line done ) > ${_sysconfdir}/iwebadmin-stat.override fi }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor