summaryrefslogtreecommitdiff
path: root/examples/redhat/makeldirs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'examples/redhat/makeldirs.sh')
-rwxr-xr-xexamples/redhat/makeldirs.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/redhat/makeldirs.sh b/examples/redhat/makeldirs.sh
new file mode 100755
index 0000000000..1ca312dfc1
--- /dev/null
+++ b/examples/redhat/makeldirs.sh
@@ -0,0 +1,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