mirror of
https://github.com/mitb-archive/filebot
synced 2025-01-08 12:28:04 -05:00
QPKG_SERVICE_PROGRAM must be a unique name (least it overrides other startup scripts in /etc/init.d)
This commit is contained in:
parent
f6c908f427
commit
8682fc084e
@ -17,7 +17,7 @@ QPKG_SUMMARY="@{package.description}"
|
||||
QPKG_RC_NUM="452"
|
||||
|
||||
# Init-script used to control the start and stop of the installed application.
|
||||
QPKG_SERVICE_PROGRAM="start-stop-status.sh"
|
||||
QPKG_SERVICE_PROGRAM="filebot-service.sh"
|
||||
|
||||
# Minimum QTS version requirement
|
||||
QTS_MINI_VERSION="4.1.0"
|
||||
|
@ -12,18 +12,19 @@ case "$1" in
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# create /usr/bin/[package] program link
|
||||
ln -sf "$QPKG_ROOT/filebot.sh" "/usr/bin/filebot"
|
||||
;;
|
||||
/bin/ln -sf "$QPKG_ROOT/filebot.sh" "/usr/bin/filebot"
|
||||
/bin/ln -sf "$QPKG_ROOT" "/opt/filebot"
|
||||
;;
|
||||
|
||||
stop)
|
||||
rm "/usr/bin/filebot"
|
||||
;;
|
||||
rm -rf "/usr/bin/filebot"
|
||||
rm -rf "/opt/filebot"
|
||||
;;
|
||||
|
||||
restart)
|
||||
$0 stop
|
||||
$0 start
|
||||
;;
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
Loading…
Reference in New Issue
Block a user