20 lines
529 B
Plaintext
20 lines
529 B
Plaintext
|
#!/bin/bash
|
||
|
#
|
||
|
# Fixes permissions on repositories
|
||
|
# Copyright (c) 2009-2010 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
#
|
||
|
. /usr/share/makedist/functions.inc.sh
|
||
|
. /etc/sysconfig/openmamba-central
|
||
|
|
||
|
for rep in ${local_reps[*]}; do
|
||
|
getent passwd ftp$rep >/dev/null || {
|
||
|
echo "Warning: missing user ftp$rep for $rep repository; skipping."
|
||
|
continue
|
||
|
}
|
||
|
find /var/ftp/pub/openmamba/$rep/RPMS.i586 /var/ftp/pub/openmamba/$rep/SRPMS.base \
|
||
|
-uid 0 -exec chown ftp$rep:users {} \;
|
||
|
# >/dev/null
|
||
|
done
|
||
|
|
||
|
exit 0
|