Skip to content

Commit

Permalink
fix(init): fix mount tls certs
Browse files Browse the repository at this point in the history
Signed-off-by: Tianling Shen <[email protected]>
  • Loading branch information
1715173329 committed Dec 4, 2024
1 parent 27d6b07 commit 1d815e1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion root/etc/init.d/homeproxy
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@ start_service() {
procd_add_jail "sing-box-s" log procfs
procd_add_jail_mount "$RUN_DIR/sing-box-s.json"
procd_add_jail_mount_rw "$RUN_DIR/sing-box-s.log"
procd_add_jail_mount "$HP_DIR/certs/"
procd_add_jail_mount_rw "$HP_DIR/certs/"
procd_add_jail_mount "/etc/acme/"
procd_add_jail_mount "/etc/ssl/"
procd_add_jail_mount "/etc/localtime"
procd_add_jail_mount "/etc/TZ"
procd_set_param capabilities "/etc/capabilities/homeproxy.json"
Expand Down Expand Up @@ -293,6 +295,8 @@ start_service() {
echo > "$RUN_DIR/sing-box-s.log"
chown sing-box:sing-box "$RUN_DIR/sing-box-s.log"
chown sing-box:sing-box "$RUN_DIR/sing-box-s.json"
mkdir -p "$HP_DIR/certs"
chown sing-box:sing-box "$HP_DIR/certs"
fi

# Setup firewall
Expand Down

0 comments on commit 1d815e1

Please sign in to comment.