Move image fs directories to unified directory
This commit is contained in:
70
fs/btsync/etc/btsync.conf
Normal file
70
fs/btsync/etc/btsync.conf
Normal file
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"device_name": "My Sync Device",
|
||||
"listening_port" : 0, // 0 - randomize port
|
||||
|
||||
/* storage_path dir contains auxilliary app files
|
||||
if no storage_path field: .sync dir created in the directory
|
||||
where binary is located.
|
||||
otherwise user-defined directory will be used
|
||||
*/
|
||||
"storage_path" : "/host/var/btsync",
|
||||
|
||||
// uncomment next line if you want to set location of pid file
|
||||
// "pid_file" : "/var/run/btsync/btsync.pid",
|
||||
|
||||
|
||||
"check_for_updates" : true,
|
||||
"use_upnp" : true, // use UPnP for port mapping
|
||||
|
||||
|
||||
/* limits in kB/s
|
||||
0 - no limit
|
||||
*/
|
||||
"download_limit" : 0,
|
||||
"upload_limit" : 0,
|
||||
|
||||
/* remove "listen" field to disable WebUI
|
||||
remove "login" and "password" fields to disable credentials check
|
||||
*/
|
||||
"webui" :
|
||||
{
|
||||
"listen" : "0.0.0.0:8888",
|
||||
"login" : "admin",
|
||||
"password" : "password"
|
||||
}
|
||||
|
||||
/* !!! if you set shared folders in config file WebUI will be DISABLED !!!
|
||||
shared directories specified in config file
|
||||
override the folders previously added from WebUI.
|
||||
*/
|
||||
/*
|
||||
,
|
||||
"shared_folders" :
|
||||
[
|
||||
{
|
||||
// use --generate-secret in command line to create new secret
|
||||
"secret" : "MY_SECRET_1", // * required field
|
||||
"dir" : "/home/user/bittorrent/sync_test", // * required field
|
||||
|
||||
// use relay server when direct connection fails
|
||||
"use_relay_server" : true,
|
||||
"use_tracker" : true,
|
||||
"use_dht" : false,
|
||||
"search_lan" : true,
|
||||
// enable SyncArchive to store files deleted on remote devices
|
||||
"use_sync_trash" : true,
|
||||
// restore modified files to original version, ONLY for Read-Only folders
|
||||
// "overwrite_changes" : false,
|
||||
// specify hosts to attempt connection without additional search
|
||||
"known_hosts" :
|
||||
[
|
||||
"192.168.1.2:44444"
|
||||
]
|
||||
}
|
||||
]
|
||||
*/
|
||||
|
||||
// Advanced preferences can be added to config file.
|
||||
// Info is available in BitTorrent Sync User Guide.
|
||||
|
||||
}
|
||||
3
fs/hamachi/bin/proxy
Normal file
3
fs/hamachi/bin/proxy
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
socat TCP-LISTEN:8888,fork TCP:host:8888 &
|
||||
socat TCP-LISTEN:80,fork,crlf SYSTEM:"echo HTTP/1.0 200; echo Content-Type: text/plain; echo;" &
|
||||
4
fs/lighttpd/bin/run
Normal file
4
fs/lighttpd/bin/run
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
echo "$HOST_ADDR host" >> /tmp/hosts
|
||||
mkdir -p `dirname $REDIS_LOG` $REDIS_DATA
|
||||
/usr/sbin/mysqld
|
||||
18
fs/mysql/bin/run
Normal file
18
fs/mysql/bin/run
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
set -m
|
||||
echo "$HOST_ADDR host" >> /tmp/hosts
|
||||
mkdir -p `dirname $MYSQL_LOG`
|
||||
if [ ! -d $MYSQL_DATA ]; then
|
||||
mkdir `dirname $MYSQL_DATA`
|
||||
cp /var/lib/mysql/ $MYSQL_DATA -R
|
||||
chown mysql:mysql $MYSQL_DATA -R
|
||||
MYSQL_SETUP=true
|
||||
fi
|
||||
/usr/bin/mysqld_safe --skip-syslog &
|
||||
if [[ -n "$MYSQL_SETUP" ]]; then
|
||||
until [[ -n $(netstat -an | grep 3306) ]]; do
|
||||
sleep 1
|
||||
done
|
||||
mysqladmin -u root password kreeft
|
||||
fg
|
||||
fi
|
||||
4
fs/redis/bin/run
Normal file
4
fs/redis/bin/run
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
echo "$HOST_ADDR host" >> /tmp/hosts
|
||||
mkdir -p `dirname $REDIS_LOG` $REDIS_DATA
|
||||
/opt/redis-$VERSION/src/redis-server $REDIS_CONFIG
|
||||
Reference in New Issue
Block a user