-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmkdir.sh
executable file
·66 lines (53 loc) · 2.21 KB
/
mkdir.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/sh
VUFIND_HOME=.
if [ ! -d $VUFIND_HOME/solr/jetty/logs ]; then
echo mkdir $VUFIND_HOME/solr/jetty/logs does not exist, creating it...
mkdir -p $VUFIND_HOME/solr/jetty/logs
fi
if [ ! -d $VUFIND_HOME/web/interface/compile ]; then
echo $VUFIND_HOME/web/interface/compile does not exist, creating it...
mkdir -p $VUFIND_HOME/web/interface/compile
fi
chmod -R a+rw $VUFIND_HOME/web/interface/compile
if [ ! -d $VUFIND_HOME/web/interface/cache ]; then
echo $VUFIND_HOME/web/interface/cache does not exist, creating it...
mkdir -p $VUFIND_HOME/web/interface/cache
fi
chmod -R a+rw $VUFIND_HOME/web/interface/cache
if [ ! -d $VUFIND_HOME/web/images/covers/small ]; then
echo $VUFIND_HOME/web/images/covers/small does not exist, creating it...
mkdir -p $VUFIND_HOME/web/images/covers/small
fi
if [ ! -d $VUFIND_HOME/web/images/covers/medium ]; then
echo $VUFIND_HOME/web/images/covers/medium does not exist, creating it...
mkdir -p $VUFIND_HOME/web/images/covers/medium
fi
if [ ! -d $VUFIND_HOME/web/images/covers/large ]; then
echo $VUFIND_HOME/web/images/covers/large does not exist, creating it...
mkdir -p $VUFIND_HOME/web/images/covers/large
fi
if [ ! -d $VUFIND_HOME/web/images/covers/local ]; then
echo $VUFIND_HOME/web/images/covers/local does not exist, creating it...
mkdir -p $VUFIND_HOME/web/images/covers/local/small
mkdir -p $VUFIND_HOME/web/images/covers/local/medium
mkdir -p $VUFIND_HOME/web/images/covers/local/large
mkdir -p $VUFIND_HOME/web/images/covers/local/original
fi
if [ ! -d $VUFIND_HOME/web/images/covers/by-id ]; then
echo $VUFIND_HOME/web/images/covers/by-id does not exist, creating it...
mkdir -p $VUFIND_HOME/web/images/covers/by-id
fi
chmod -R a+rw $VUFIND_HOME/web/images/covers
if [ ! -d $VUFIND_HOME/openurl_cache ]; then
echo $VUFIND_HOME/openurl_cache does not exist, creating it...
mkdir -p $VUFIND_HOME/openurl_cache
fi
chmod -R a+rw $VUFIND_HOME/openurl_cache
if [ ! -d $VUFIND_HOME/log ]; then
echo $VUFIND_HOME/log does not exist, creating it...
mkdir -p $VUFIND_HOME/log
touch $VUFIND_HOME/log/messages.log
fi
chmod -R a+rw $VUFIND_HOME/log
chmod a+rw $VUFIND_HOME/web/interface/themes/bootstrap/css
chmod a+rw $VUFIND_HOME/web/interface/themes/bootstrap/js