move config to qbittorrent

Signed-off-by: sbwml <admin@cooluc.com>
This commit is contained in:
sbwml 2024-08-10 05:52:16 +08:00
parent ec648110a9
commit 2982044fdc
4 changed files with 6 additions and 1 deletions

View File

@ -73,6 +73,11 @@ endef
define Package/qbittorrent/install define Package/qbittorrent/install
$(INSTALL_DIR) $(1)/usr/bin $(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/qbittorrent-nox $(1)/usr/bin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/qbittorrent-nox $(1)/usr/bin
$(INSTALL_DIR) $(1)/etc/config $(1)/etc/init.d $(1)/usr/share/qbittorrent
$(INSTALL_BIN) ./files/qbittorrent.init $(1)/etc/init.d/qbittorrent
$(INSTALL_CONF) ./files/qbittorrent.config $(1)/etc/config/qbittorrent
$(INSTALL_CONF) ./files/qBittorrent.conf.example $(1)/usr/share/qbittorrent/qBittorrent.conf.example
endef endef
$(eval $(call BuildPackage,qbittorrent)) $(eval $(call BuildPackage,qbittorrent))

View File

@ -16,7 +16,7 @@ start_service() {
[ $enabled != 1 ] && return 1 [ $enabled != 1 ] && return 1
if [ ! -f "$profile_dir/qBittorrent/config/qBittorrent.conf" ]; then if [ ! -f "$profile_dir/qBittorrent/config/qBittorrent.conf" ]; then
mkdir -p $profile_dir/qBittorrent/config/ mkdir -p $profile_dir/qBittorrent/config/
cp /etc/qbittorrent/qBittorrent.conf.example $profile_dir/qBittorrent/config/qBittorrent.conf cp /usr/share/qbittorrent/qBittorrent.conf.example $profile_dir/qBittorrent/config/qBittorrent.conf
fi fi
procd_open_instance procd_open_instance
procd_set_param command $PROG procd_set_param command $PROG