Skip to content

Commit

Permalink
🎰 version 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tprelog committed Feb 11, 2021
1 parent b935d38 commit 987854a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
6 changes: 4 additions & 2 deletions overlay/usr/local/etc/rc.d/zwavejs2mqtt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# shellcheck disable=SC1091,2034,2154
# VERSION: 1.0.20210211
#

# shellcheck disable=SC1091,2034,2154

name="zwavejs2mqtt"
rcvar="${name}_enable"

Expand All @@ -23,7 +25,7 @@ host_ip="$(ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9
: "${zwavejs2mqtt_app_dir:="/usr/local/share/zwavejs2mqtt"}"
: "${zwavejs2mqtt_store_dir:="/usr/local/etc/zwavejs2mqtt"}"
: "${zwavejs2mqtt_host:="${host_ip}"}"
: "${zwavejs2mqtt_port:="8091"}"
: "${zwavejs2mqtt_port:=8091}"

export PATH="${zwavejs2mqtt_path}"
[ -n "${zwavejs2mqtt_cpath:-}" ] && export CPATH="${zwavejs2mqtt_cpath}"
Expand Down
4 changes: 4 additions & 0 deletions post_install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

plugin_version="1.0.20210211"
sysrc plugin_initialized="1.0.$(date +%Y%m%d)"
sysrc plugin_version="${plugin_version}"

## Configure the jail's primary service using rcvars
sysrc zwavejs2mqtt_app_dir=/usr/local/share/zwavejs2mqtt
sysrc zwavejs2mqtt_store_dir=/usr/local/etc/zwavejs2mqtt
Expand Down
3 changes: 2 additions & 1 deletion post_update.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
# version 1.0-r20210211

# shellcheck disable=SC1091
. /etc/rc.subr && load_rc_config
Expand All @@ -25,4 +26,4 @@ upgrade_service() {
checkyesno plugin_enable_pkglist && install_pkglist
checkyesno plugin_upgrade_service && upgrade_service

echo "TODO: Update the PLUGIN_INFO"
echo -e "post_update finished\n"
1 change: 1 addition & 0 deletions pre_update.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
# version 1.0-r20210211

# shellcheck disable=SC1091
. /etc/rc.subr && load_rc_config
Expand Down

0 comments on commit 987854a

Please sign in to comment.