-
Notifications
You must be signed in to change notification settings - Fork 256
Expand file tree
/
Copy pathdocker-entrypoint.sh
More file actions
42 lines (31 loc) · 862 Bytes
/
docker-entrypoint.sh
File metadata and controls
42 lines (31 loc) · 862 Bytes
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
#!/bin/sh
ipasd_args=""
if [ -n "$PORT" ];then
ipasd_args=$ipasd_args"-port $PORT "
fi
PUBLIC_URL=${PUBLIC_URL:-$DOMAIN}
if [ -n "$PUBLIC_URL" ];then
ipasd_args=$ipasd_args"-public-url $PUBLIC_URL "
fi
if [ -n "$REMOTE" ];then
ipasd_args=$ipasd_args"-remote $REMOTE "
fi
if [ -n "$REMOTE_URL" ];then
ipasd_args=$ipasd_args"-remote-url $REMOTE_URL "
fi
if [ "$DELETE_ENABLED" = "true" -o "$DELETE_ENABLED" = "1" ];then
ipasd_args=$ipasd_args"-del "
fi
if [ "$UPLOAD_DISABLED" = "true" -o "$UPLOAD_DISABLED" = "1" ];then
ipasd_args=$ipasd_args"-upload-disabled "
fi
if [ -n "$META_PATH" ];then
ipasd_args=$ipasd_args"-meta-path $META_PATH "
fi
if [ -n "$LOGIN_USER" ];then
ipasd_args=$ipasd_args"-user $LOGIN_USER "
fi
if [ -n "$LOGIN_PASS" ];then
ipasd_args=$ipasd_args"-pass $LOGIN_PASS "
fi
/app/ipasd $ipasd_args