-
Notifications
You must be signed in to change notification settings - Fork 2k
/
setup.sh
executable file
·32 lines (24 loc) · 763 Bytes
/
setup.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
if [ -n "$1" ]; then
TARGET_CONF_PATH=$1
else
TARGET_CONF_PATH=/etc/fdfs
fi
mkdir -p $TARGET_CONF_PATH
if [ ! -f $TARGET_CONF_PATH/tracker.conf ]; then
cp -f conf/tracker.conf $TARGET_CONF_PATH/tracker.conf
fi
if [ ! -f $TARGET_CONF_PATH/storage.conf ]; then
cp -f conf/storage.conf $TARGET_CONF_PATH/storage.conf
fi
if [ ! -f $TARGET_CONF_PATH/client.conf ]; then
cp -f conf/client.conf $TARGET_CONF_PATH/client.conf
fi
if [ ! -f $TARGET_CONF_PATH/storage_ids.conf ]; then
cp -f conf/storage_ids.conf $TARGET_CONF_PATH/storage_ids.conf
fi
if [ ! -f $TARGET_CONF_PATH/http.conf ]; then
cp -f conf/http.conf $TARGET_CONF_PATH/http.conf
fi
if [ ! -f $TARGET_CONF_PATH/mime.types ]; then
cp -f conf/mime.types $TARGET_CONF_PATH/mime.types
fi