fix(packaging): install tachyon-torrserver-direct init script
This commit is contained in:
@@ -265,6 +265,8 @@ build_backend_root() {
|
||||
make_dir "$output_root/usr/share/tachyon"
|
||||
|
||||
install -m 0755 "$ROOT_DIR/tachyon/files/etc/init.d/tachyon" "$output_root/etc/init.d/tachyon"
|
||||
install -m 0755 "$ROOT_DIR/tachyon/files/etc/init.d/tachyon-torrserver-direct" \
|
||||
"$output_root/etc/init.d/tachyon-torrserver-direct"
|
||||
install -m 0644 "$ROOT_DIR/tachyon/files/etc/config/tachyon" "$output_root/etc/config/tachyon"
|
||||
install -m 0755 "$ROOT_DIR/tachyon/files/usr/bin/tachyon" "$output_root/usr/bin/tachyon"
|
||||
cp -a "$ROOT_DIR/tachyon/files/usr/lib/." "$output_root/usr/lib/tachyon/"
|
||||
@@ -290,6 +292,7 @@ build_backend_root() {
|
||||
|
||||
normalize_package_root_modes "$output_root"
|
||||
chmod 0755 "$output_root/etc/init.d/tachyon" "$output_root/usr/bin/tachyon" \
|
||||
"$output_root/etc/init.d/tachyon-torrserver-direct" \
|
||||
"$output_root/etc/hotplug.d/iface/99-tachyon-wan-monitor" \
|
||||
"$output_root/usr/lib/cgi-bin/tachyon-agent"
|
||||
# Contains the Telegram bot token placeholder and receives user secrets.
|
||||
|
||||
@@ -175,6 +175,7 @@ endef
|
||||
define Package/tachyon/install
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/etc/init.d/tachyon $(1)/etc/init.d/tachyon
|
||||
$(INSTALL_BIN) ./files/etc/init.d/tachyon-torrserver-direct $(1)/etc/init.d/tachyon-torrserver-direct
|
||||
|
||||
$(INSTALL_DIR) $(1)/etc/config
|
||||
$(INSTALL_CONF) ./files/etc/config/tachyon $(1)/etc/config/tachyon
|
||||
|
||||
@@ -18,6 +18,7 @@ fail() {
|
||||
# silently lose hotplug handlers, the agent CGI and reset defaults.
|
||||
required_sources=(
|
||||
"files/etc/init.d/tachyon"
|
||||
"files/etc/init.d/tachyon-torrserver-direct"
|
||||
"files/etc/config/tachyon"
|
||||
"files/usr/bin/tachyon"
|
||||
"files/etc/hotplug.d/iface/99-tachyon-wan-monitor"
|
||||
|
||||
Reference in New Issue
Block a user