diff --git a/build/boot/btsync.sh b/build/boot/btsync.sh index 01ad6c9..878a257 100755 --- a/build/boot/btsync.sh +++ b/build/boot/btsync.sh @@ -3,5 +3,5 @@ set -e if [[ ! -e $BTSYNC_CONFIG ]]; then mkdir -p `dirname $BTSYNC_CONFIG` /opt/btsync --dump-sample-config > $BTSYNC_CONFIG - sed -i "s,\(\"listen\"\s*:\).*,\1 \"0.0.0.0:8888\"\,," $BTSYNC_CONFIG + sed -i "s,// \(\"storage_path\"\).*, \1 : \"$BTSYNC_DATA\"\,," $BTSYNC_CONFIG fi \ No newline at end of file diff --git a/build/scripts/btsync.sh b/build/scripts/btsync.sh index 81f6e29..df6cb79 100755 --- a/build/scripts/btsync.sh +++ b/build/scripts/btsync.sh @@ -4,7 +4,7 @@ source /build/config set -x ## Configuration -export_env BTSYNC_CONFIG /host/etc/btsync.conf +export_env BTSYNC_CONFIG /host/etc/btsync/btsync.conf export_env BTSYNC_DATA /host/var/btsync ## BTsync