Skip to content

Commit

Permalink
Merge pull request #5 from josegonzalez/debug
Browse files Browse the repository at this point in the history
feat: add the ability to enable debug logging
  • Loading branch information
josegonzalez authored Feb 8, 2025
2 parents 1e70d17 + 1978d23 commit 7d9f921
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,17 @@ The default credentials are:

- `minui:minui`

### ftp-port
### Debug Logging

To enable debug logging, create a file named `debug` in the pak folder. Logs will be written to the `$SDCARD_PATH/.userdata/$PLATFORM/logs/` folder.

### Configuration

#### ftp-port

By default, `sftpgo` runs the FTP server on port `21`. To run it on a different port, create a file named `ftp-port` in the pak folder with the desired port number as the contents of the file. This will be used on subsequent runs for the port to run the FTP server on.

### http-port
#### http-port

By default, `sftpgo` runs the http ui on port `8888`. To run it on a different port, create a file named `http-port` in the pak folder with the desired port number as the contents of the file. This will be used on subsequent runs for the port to run the http ui on.

Expand Down
1 change: 1 addition & 0 deletions bin/on-boot
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/sh
bindir="$(dirname "$0")"
progdir="$(dirname "$bindir")"
[ -f "$progdir/debug" ] && set -x
PAK_NAME="$(basename "$progdir")"

main() {
Expand Down
1 change: 1 addition & 0 deletions bin/service-on
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
bindir="$(dirname "$0")"
progdir="$(dirname "$bindir")"
cd "$progdir" || exit 1
[ -f "$progdir/debug" ] && set -x
PAK_NAME="$(basename "$progdir")"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$progdir/lib"

Expand Down
1 change: 1 addition & 0 deletions launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
echo "$0" "$@"
progdir="$(dirname "$0")"
cd "$progdir" || exit 1
[ -f "$progdir/debug" ] && set -x
PAK_NAME="$(basename "$progdir")"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$progdir/lib"
echo 1 >/tmp/stay_awake
Expand Down

0 comments on commit 7d9f921

Please sign in to comment.