Skip to content

Commit

Permalink
gpt说得对
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaojianli committed Sep 27, 2024
1 parent 4d3d59e commit 6e602bc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion pkg/pkg/post-install
Original file line number Diff line number Diff line change
@@ -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"
echo "To auto start peerbanhelper, please run: sysrc peerbanhelper_enable=YES"
mkdir -p /usr/local/var/db/peerbanhelper
2 changes: 1 addition & 1 deletion pkg/pkg/work-dir/usr/local/etc/rc.d/peerbanhelper
Original file line number Diff line number Diff line change
Expand Up @@ -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}"}
Expand Down

0 comments on commit 6e602bc

Please sign in to comment.