Skip to content

Commit

Permalink
fix voipblock app install/remove
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancYescO committed Sep 21, 2021
1 parent ffe9b0f commit d57fe37
Showing 1 changed file with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -401,13 +401,17 @@ app_aria2() {

app_voipblock_for_mmpbx() {
install() {
curl -s https://repository.macoers.com/voipblock/voipblock.sh | ash -s tch_install_for_mmpbx && {
{
curl -s https://repository.macoers.com/voipblock/voipblock.sh | ash -s tch_install_for_mmpbx
} && {
uci set modgui.app.voipblock_for_mmpbx="1"
uci commit modgui
}
}
remove() {
curl -s https://repository.macoers.com/voipblock/voipblock.sh | ash -s tch_uninstall_for_mmpbx && {
{
curl -s https://repository.macoers.com/voipblock/voipblock.sh | ash -s tch_uninstall_for_mmpbx
} && {
uci set modgui.app.voipblock_for_mmpbx="0"
uci commit modgui
}
Expand All @@ -429,14 +433,18 @@ app_voipblock_for_mmpbx() {

app_voipblock_for_asterisk() {
install() {
curl -s https://repository.macoers.com/voipblock/voipblock.sh | ash -s tch_install_for_asterisk && {
{
curl -s https://repository.macoers.com/voipblock/voipblock.sh | ash -s tch_install_for_asterisk
} && {
uci set modgui.app.blacklist_app="0"
uci set modgui.app.voipblock_for_asterisk="1"
uci commit modgui
}
}
remove() {
curl -s https://repository.macoers.com/voipblock/voipblock.sh | ash -s tch_uninstall_for_asterisk && {
{
curl -s https://repository.macoers.com/voipblock/voipblock.sh | ash -s tch_uninstall_for_asterisk
} && {
uci set modgui.app.voipblock_for_asterisk="0"
uci commit modgui
}
Expand Down Expand Up @@ -562,10 +570,10 @@ call_app_type() {
app_xupnp "$1"
;;
voipblockmmpbx)
app_voipblock_for_mmpbx "$1" "$3"
app_voipblock_for_mmpbx "$1"
;;
voipblockasterisk)
app_voipblock_for_asterisk "$1" "$3"
app_voipblock_for_asterisk "$1"
;;
blacklist)
app_blacklist "$1" "$3"
Expand Down

0 comments on commit d57fe37

Please sign in to comment.