summaryrefslogtreecommitdiff
path: root/examples/redhat/makeldirs.sh
blob: 1ca312dfc181f119734f46690e58642dbbc54be2 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
RPMDIR=$1
mkdir $RPMDIR
for i in etc etc/logrotate.d bin sbin usr usr/bin usr/sbin var var/spool var/log var/lock var/lock/samba
do
	if [ ! -x $RPMDIR/$i ]; then
		mkdir $RPMDIR/$i
	fi
	echo Mkdir $RPMDIR/$i ... Done
done