File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- trap ' kill -TERM $PID' TERM INT
3
+ trap ' kill -SIGTERM $PID' TERM INT
4
4
rm -f /opt/JDownloader/app/JDownloader.jar.* 2> /dev/null
5
5
rm -f /opt/JDownloader/app/JDownloader.pid 2> /dev/null
6
6
@@ -62,7 +62,7 @@ if echo "$UMASK" | grep -Eq '0[0-7]{3}' ; then
62
62
umask " $UMASK "
63
63
fi
64
64
65
- if [ -m " $PUID " ]; then
65
+ if [ -n " $PUID " ]; then
66
66
su jdown -s /bin/sh -c ' java -Dsun.jnu.encoding=UTF-8 -Dfile.encoding=UTF-8 -Djava.awt.headless=true -jar /opt/JDownloader/app/JDownloader.jar -norestart' &
67
67
else
68
68
java -Dsun.jnu.encoding=UTF-8 -Dfile.encoding=UTF-8 -Djava.awt.headless=true -jar /opt/JDownloader/app/JDownloader.jar -norestart &
73
73
wait $PID
74
74
PID=` pgrep java`
75
75
done
76
- wait $PID # don't alter exit status
77
76
EXIT_STATUS=$?
You can’t perform that action at this time.
0 commit comments