Minor fixes to btsync container

This commit is contained in:
2016-04-09 16:21:54 +01:00
parent a429042cdc
commit 801d108d0e
2 changed files with 2 additions and 2 deletions

View File

@@ -3,5 +3,5 @@ set -e
if [[ ! -e $BTSYNC_CONFIG ]]; then if [[ ! -e $BTSYNC_CONFIG ]]; then
mkdir -p `dirname $BTSYNC_CONFIG` mkdir -p `dirname $BTSYNC_CONFIG`
/opt/btsync --dump-sample-config > $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 fi

View File

@@ -4,7 +4,7 @@ source /build/config
set -x set -x
## Configuration ## 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 export_env BTSYNC_DATA /host/var/btsync
## BTsync ## BTsync