diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-08-19 11:57:09 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-08-19 11:57:09 +0000 |
commit | 657ed8fec2f136a917184121fdaf5484366698bb (patch) | |
tree | 9c7afebb28600ed9b1f30331a7eaac8b316d3b01 /main/aports-build/aports-build.initd | |
parent | bca3bf9c11ea2ebd0e45364f3048303cf56e44d9 (diff) | |
download | aports-657ed8fec2f136a917184121fdaf5484366698bb.tar.bz2 aports-657ed8fec2f136a917184121fdaf5484366698bb.tar.xz |
main/aports-build: re-use the general mqtt-exec initscript
Instead of rolling our own specialized init.d script we simply reuse
the general purpose mqtt-exec init.d script.
This gives use support for will messages and support for subscribing to
more than a single topic.
Diffstat (limited to 'main/aports-build/aports-build.initd')
-rw-r--r-- | main/aports-build/aports-build.initd | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/main/aports-build/aports-build.initd b/main/aports-build/aports-build.initd index cf7852edb6..709b8b999f 100644 --- a/main/aports-build/aports-build.initd +++ b/main/aports-build/aports-build.initd @@ -1,5 +1,7 @@ #!/sbin/runscript +# this script is deprecated but kept for a migration period + : ${mqtt_broker:="msg.alpinelinux.org"} : ${git_branch:=master} : ${mqtt_topic:="git/aports/$git_branch"} @@ -13,16 +15,9 @@ depend() { need net } -start_pre() { - local h=$(getent passwd buildozer | cut -d: -f6) - checkpath --owner buildozer --directory ${pidfile%/*} - local i - for i in aports alpine-iso; do - if ! [ -d "$h"/$i ]; then - eerror "$h/$i is missing. Please git clone it" - return 1 - fi - done +start() { + eerror "Please migrate to mqtt-exec.aports-build" + return 1 } stop_post() { |