Skip to content

Commit ceddd59

Browse files
committed
openwrt: fix create directory
1 parent ea28104 commit ceddd59

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

openwrt/xunlei/files/xunlei.init

+13
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,19 @@ start_service() {
4848
ln -s /usr/share/xunlei/target /var/packages/pan-xunlei-com
4949
ln -s /usr/share/xunlei/target/host/etc/synoinfo.conf /etc/synoinfo.conf
5050
ln -s /usr/share/xunlei/target/host/usr/syno/synoman/webman/modules/authenticate.cgi /usr/syno/synoman/webman/modules/authenticate.cgi
51+
52+
if [ ! -d "$config_path" ]; then
53+
mkdir -p $config_path
54+
fi
55+
56+
if [ ! -d "$download_path" ]; then
57+
mkdir -p $download_path
58+
fi
59+
60+
if [ ! -d "$mount_bind_download_path" ]; then
61+
mkdir -p $mount_bind_download_path
62+
fi
63+
5164
args="--host $host --port $port --config-path $config_path --download-path $download_path --mount-bind-download-path $mount_bind_download_path"
5265

5366
if [ -n "$auth_user" ] && [ -n "$auth_password" ]; then

0 commit comments

Comments
 (0)