From 6e602bc68d55f832ec301d8308f3463e64006d7d Mon Sep 17 00:00:00 2001 From: Gaojianli <823805669hehe@gmail.com> Date: Sat, 28 Sep 2024 03:05:34 +0800 Subject: [PATCH] =?UTF-8?q?gpt=E8=AF=B4=E5=BE=97=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build_pkg.yml | 2 +- pkg/pkg/post-install | 3 ++- pkg/pkg/work-dir/usr/local/etc/rc.d/peerbanhelper | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_pkg.yml b/.github/workflows/build_pkg.yml index 45c9a783e2..ad7703fd1a 100644 --- a/.github/workflows/build_pkg.yml +++ b/.github/workflows/build_pkg.yml @@ -27,7 +27,7 @@ jobs: run: | mkdir -p pkg/pkg/work-dir/usr/local/lib/peerbanhelper cp target/PeerBanHelper.jar pkg/pkg/work-dir/usr/local/lib/peerbanhelper/ - pkg create -M pkg/pkg/MANIFEST -r /pkg/pkg/work-dir -p pkg/pkg/pkg-plist -o pkg/ + pkg create -M pkg/pkg/MANIFEST -r pkg/pkg/work-dir -p pkg/pkg/pkg-plist -o pkg/ ls -l pkg - name: Upload build artifacts uses: actions/upload-artifact@v4 diff --git a/pkg/pkg/post-install b/pkg/pkg/post-install index cc08bbb28f..6d329513a1 100755 --- a/pkg/pkg/post-install +++ b/pkg/pkg/post-install @@ -1,3 +1,4 @@ #!/bin/sh echo "Thansk for using peerbanhelper. Your config file will be placed at /usr/local/etc/peerbanhelper" -echo "To auto start peerbanhelper, please run: sysrc peerbanhelper_enable=YES" \ No newline at end of file +echo "To auto start peerbanhelper, please run: sysrc peerbanhelper_enable=YES" +mkdir -p /usr/local/var/db/peerbanhelper \ No newline at end of file diff --git a/pkg/pkg/work-dir/usr/local/etc/rc.d/peerbanhelper b/pkg/pkg/work-dir/usr/local/etc/rc.d/peerbanhelper index 64460be203..1038255daf 100755 --- a/pkg/pkg/work-dir/usr/local/etc/rc.d/peerbanhelper +++ b/pkg/pkg/work-dir/usr/local/etc/rc.d/peerbanhelper @@ -13,7 +13,7 @@ load_rc_config $name : ${peerbanhelper_enable:=NO} : ${peerbanhelper_user:="root"} -: ${peerbanhelper_dir:="/usr/local/etc/peerbanhelper"} +: ${peerbanhelper_dir:="/usr/local/var/db/peerbanhelper"} : ${peerbanhelper_classpath:="/usr/local/lib/peerbanhelper/PeerBanHelper.jar"} : ${peerbanhelper_jvm_flags:="-Dpbh.datadir=${peerbanhelper_dir} -Xmx386M -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+ShrinkHeapInSteps"} : ${peerbanhelper_command:="/usr/local/bin/java ${peerbanhelper_jvm_flags} -jar ${peerbanhelper_classpath}"}