fix: start-debug not removing correct socket and add report command

This commit is contained in:
Alexis Tyler
2020-10-21 09:43:56 +10:30
parent f28f81bf70
commit 99d4e810b9

View File

@@ -102,6 +102,15 @@ start() {
status
exit 0
}
report() {
cat << EOF
<---- Version ---->
$(version)
<------ OS ------->
Unraid v$(source /etc/unraid-version; echo "$version";)
EOF
}
startdebug() {
stop
local old_working_directory=$(echo $pwd)
@@ -153,7 +162,7 @@ uninstall() {
for download in ${downloads[@]}; do
rm -rf $node_base_directory/${download}
done
rm -f /var/run/node-api.sock
rm -f /var/run/unraid-api.sock
}
case "$1" in
'status')
@@ -165,6 +174,9 @@ case "$1" in
'start')
start
;;
'report')
report
;;
'switch-env')
switchenv
;;
@@ -186,7 +198,7 @@ case "$1" in
uninstall
;;
*)
echo "usage $0 status|start|switch-env|start-debug|stop|reload|install|uninstall"
echo "usage $0 status|start|report|switch-env|start-debug|stop|reload|install|uninstall"
esac
]]>
</INLINE>