Skip to content

Commit

Permalink
fix: hero set space variables name
Browse files Browse the repository at this point in the history
  • Loading branch information
ED Hong committed Jun 18, 2024
1 parent 94df55c commit 7f12e98
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions shared/scripts/qinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#
# A QPKG installation script for QDK
#
# QDK V.2.3.13
# QDK V.2.3.14
#
# Copyright (C) 2009,2010 QNAP Systems, Inc.
# Copyright (C) 2010,2011 Michael Nordstrom
Expand Down Expand Up @@ -858,7 +858,7 @@ set_qpkg_enter_readdelete_action(){
}

set_qpkg_leave_readdelete_action(){
if [ -n "$QPKG_ENTER_READDELETE_ACTION" ]; then
if [ -n "$QPKG_LEAVE_READDELETE_ACTION" ]; then
set_qpkg_field $SYS_QPKG_CONF_FIELD_LEAVE_READDELETE_ACTION "$QPKG_LEAVE_READDELETE_ACTION"
fi
}
Expand All @@ -870,26 +870,26 @@ set_qpkg_action_timeout(){
}

set_qpkg_enter_hero_low_space(){
if [ -n "$QPKG_ACTION_ENTER_HERO_LOW_SPACE" ]; then
set_qpkg_field $SYS_QPKG_CONF_FIELD_ENTER_HERO_LOW_SPACE "$QPKG_ENTER_HERO_LOW_SPACE"
if [ -n "$QPKG_ENTER_HERO_LOW_SPACE_ACTION" ]; then
set_qpkg_field $SYS_QPKG_CONF_FIELD_ENTER_HERO_LOW_SPACE "$QPKG_ENTER_HERO_LOW_SPACE_ACTION"
fi
}

set_qpkg_leave_hero_low_space(){
if [ -n "$QPKG_LEAVE_HERO_LOW_SPACE" ]; then
set_qpkg_field $SYS_QPKG_CONF_FIELD_LEAVE_HERO_LOW_SPACE "$QPKG_LEAVE_HERO_LOW_SPACE"
if [ -n "$QPKG_LEAVE_HERO_LOW_SPACE_ACTION" ]; then
set_qpkg_field $SYS_QPKG_CONF_FIELD_LEAVE_HERO_LOW_SPACE "$QPKG_LEAVE_HERO_LOW_SPACE_ACTION"
fi
}

set_qpkg_enter_hero_critical_low(){
if [ -n "$QPKG_ACTION_ENTER_HERO_CRITICAL_LOW" ]; then
set_qpkg_field $SYS_QPKG_CONF_FIELD_ENTER_HERO_CRITICAL_LOW "$QPKG_ENTER_HERO_CRITICAL_LOW"
if [ -n "$QPKG_ENTER_HERO_CRITICAL_LOW_ACTION" ]; then
set_qpkg_field $SYS_QPKG_CONF_FIELD_ENTER_HERO_CRITICAL_LOW "$QPKG_ENTER_HERO_CRITICAL_LOW_ACTION"
fi
}

set_qpkg_leave_hero_critical_low(){
if [ -n "$QPKG_LEAVE_HERO_CRITICAL_LOW" ]; then
set_qpkg_field $SYS_QPKG_CONF_FIELD_LEAVE_HERO_CRITICAL_LOW "$QPKG_LEAVE_HERO_CRITICAL_LOW"
if [ -n "$QPKG_LEAVE_HERO_CRITICAL_LOW_ACTION" ]; then
set_qpkg_field $SYS_QPKG_CONF_FIELD_LEAVE_HERO_CRITICAL_LOW "$QPKG_LEAVE_HERO_CRITICAL_LOW_ACTION"
fi
}

Expand Down

0 comments on commit 7f12e98

Please sign in to comment.