Import some files and transform to working containers for:
* mysql * lighttpd (with php and mysql) * transmission * sabnzbd * sickbeard * couchpotato * headphones * btsync
This commit is contained in:
@@ -3,19 +3,16 @@ set -e
|
||||
source /build/config
|
||||
set -x
|
||||
|
||||
## Redis
|
||||
## Configuration
|
||||
export_env BTSYNC_CONFIG /host/etc/btsync.conf
|
||||
export_env BTSYNC_DATA /host/var/btsync
|
||||
|
||||
## BTsync
|
||||
cd opt
|
||||
wget -O btsync.tar.gz http://download-lb.utorrent.com/endpoint/btsync/os/linux-x64/track/stable
|
||||
tar xzf btsync.tar.gz
|
||||
rm btsync.tar.gz
|
||||
|
||||
export BTSYNC_CONFIG=/host/etc/btsync.conf
|
||||
export BTSYNC_DATA=/host/var/btsync
|
||||
|
||||
## Runit script
|
||||
mkdir /etc/service/btsync
|
||||
mv /build/runit/btsync /etc/service/btsync/run
|
||||
|
||||
## Environment variables
|
||||
echo -n $BTSYNC_CONFIG > /etc/container_environment/BTSYNC_CONFIG
|
||||
echo -n $BTSYNC_DATA > /etc/container_environment/BTSYNC_DATA
|
||||
## Remove installation files
|
||||
if [ $MODE == "minimal" ]; then
|
||||
rm btsync.tar.gz
|
||||
fi
|
||||
Reference in New Issue
Block a user