clean scripts, no longer need preamble
This commit is contained in:
@@ -1,8 +1,3 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Environment
|
## Environment
|
||||||
export_env AUTOMYSQLBACKUP_VERSION_MAJOR 3.0
|
export_env AUTOMYSQLBACKUP_VERSION_MAJOR 3.0
|
||||||
export_env AUTOMYSQLBACKUP_VERSION_MINOR rc6
|
export_env AUTOMYSQLBACKUP_VERSION_MINOR rc6
|
||||||
|
|||||||
@@ -1,13 +1,2 @@
|
|||||||
#!/bin/bash
|
## Back In Time
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Environment
|
|
||||||
|
|
||||||
|
|
||||||
## BackInTime
|
|
||||||
apt_install_permanent backintime-common python-dbus
|
apt_install_permanent backintime-common python-dbus
|
||||||
|
|
||||||
## Configuration
|
|
||||||
|
|
||||||
|
|||||||
5
build/scripts/btsync.sh
Executable file → Normal file
5
build/scripts/btsync.sh
Executable file → Normal file
@@ -1,8 +1,3 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
export_env BTSYNC_CONFIG /host/etc/btsync/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
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
#!/bin/bash
|
## Dependencies
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Chrome dependencies
|
|
||||||
apt_install_permanent gconf-service libasound2 libatk1.0-0 libcairo2 libcap2 libcups2 libcurl3 libfontconfig1 libgdk-pixbuf2.0-0 libgtk2.0-0 libnspr4 libnss3 libpango1.0-0 librtmp0 libxss1 libxtst6 xdg-utils
|
apt_install_permanent gconf-service libasound2 libatk1.0-0 libcairo2 libcap2 libcups2 libcurl3 libfontconfig1 libgdk-pixbuf2.0-0 libgtk2.0-0 libnspr4 libnss3 libpango1.0-0 librtmp0 libxss1 libxtst6 xdg-utils
|
||||||
|
|
||||||
## Chrome
|
## Chrome
|
||||||
|
|||||||
5
build/scripts/cleanup.sh
Executable file → Normal file
5
build/scripts/cleanup.sh
Executable file → Normal file
@@ -1,8 +1,3 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Remove temporary packages for minimal builds
|
## Remove temporary packages for minimal builds
|
||||||
if [ $MODE == "minimal" ] && [ -f /build/temporary ]; then
|
if [ $MODE == "minimal" ] && [ -f /build/temporary ]; then
|
||||||
cat /build/temporary
|
cat /build/temporary
|
||||||
|
|||||||
@@ -1,7 +1 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## collectd
|
|
||||||
apt_install_permanent libsensors4 collectd
|
apt_install_permanent libsensors4 collectd
|
||||||
6
build/scripts/compile.sh
Executable file → Normal file
6
build/scripts/compile.sh
Executable file → Normal file
@@ -1,7 +1 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Often used tools
|
|
||||||
apt_install_temporary build-essential yasm cmake automake autopoint autoconf libtool pkg-config
|
apt_install_temporary build-essential yasm cmake automake autopoint autoconf libtool pkg-config
|
||||||
|
|||||||
@@ -1,8 +1,3 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Environment
|
## Environment
|
||||||
export_env COUCHPOTATO_CONFIG /host/etc/couchpotato/config.ini
|
export_env COUCHPOTATO_CONFIG /host/etc/couchpotato/config.ini
|
||||||
export_env COUCHPOTATO_DATA /host/var/lib/couchpotato
|
export_env COUCHPOTATO_DATA /host/var/lib/couchpotato
|
||||||
|
|||||||
@@ -1,8 +1,3 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Install cron daemon
|
## Install cron daemon
|
||||||
apt_install_permanent cron
|
apt_install_permanent cron
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,3 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Enable multimedia sources in APT
|
## Enable multimedia sources in APT
|
||||||
echo 'deb http://www.deb-multimedia.org jessie main non-free' >> /etc/apt/sources.list
|
echo 'deb http://www.deb-multimedia.org jessie main non-free' >> /etc/apt/sources.list
|
||||||
echo 'deb-src http://www.deb-multimedia.org jessie main non-free' >> /etc/apt/sources.list
|
echo 'deb-src http://www.deb-multimedia.org jessie main non-free' >> /etc/apt/sources.list
|
||||||
|
|||||||
@@ -1,8 +1,3 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Environment
|
## Environment
|
||||||
export_env FFMPEG_VERSION 2.8.6
|
export_env FFMPEG_VERSION 2.8.6
|
||||||
|
|
||||||
|
|||||||
5
build/scripts/ftpd.sh
Normal file
5
build/scripts/ftpd.sh
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
## Environment
|
||||||
|
export_env FTP_DATA /host/var/lib/ftp
|
||||||
|
|
||||||
|
## Pure-FTPd
|
||||||
|
apt_install_permanent pure-ftpd
|
||||||
@@ -1,16 +1,11 @@
|
|||||||
#!/bin/bash
|
## GMediaRender dependencies
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
# GMediaRender dependencies
|
|
||||||
apt_install_permanent libupnp-dev libgstreamer0.10-dev \
|
apt_install_permanent libupnp-dev libgstreamer0.10-dev \
|
||||||
gstreamer0.10-plugins-base gstreamer0.10-plugins-good \
|
gstreamer0.10-plugins-base gstreamer0.10-plugins-good \
|
||||||
gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly \
|
gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly \
|
||||||
gstreamer0.10-ffmpeg \
|
gstreamer0.10-ffmpeg \
|
||||||
gstreamer0.10-pulseaudio gstreamer0.10-alsa
|
gstreamer0.10-pulseaudio gstreamer0.10-alsa
|
||||||
|
|
||||||
# GMediaRender
|
## GMediaRender
|
||||||
cd opt
|
cd opt
|
||||||
git clone https://github.com/hzeller/gmrender-resurrect.git
|
git clone https://github.com/hzeller/gmrender-resurrect.git
|
||||||
cd gmrender-resurrect
|
cd gmrender-resurrect
|
||||||
@@ -18,7 +13,3 @@ autoreconf || automake --add-missing
|
|||||||
./configure
|
./configure
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
|
|
||||||
## Runit script
|
|
||||||
mkdir /etc/service/gmrender
|
|
||||||
mv /build/runit/gmrender /etc/service/gmrender/run
|
|
||||||
@@ -1,18 +1,9 @@
|
|||||||
#!/bin/bash
|
## Environment
|
||||||
set -e
|
export_env HAMACHI_DATA /host/var/lib/logmein-hamachi
|
||||||
source /build/config
|
export_env HAMACHI_VERSION 2.1.0.119
|
||||||
set -x
|
|
||||||
|
|
||||||
## Hamachi dependency
|
## Dependencies
|
||||||
apt_install_permanent lsb-core net-tools socat strace
|
apt_install_permanent lsb-core net-tools socat strace
|
||||||
|
|
||||||
## Hamachi
|
## Hamachi
|
||||||
cd /opt
|
wget -P /opt -O hamachi.deb https://secure.logmein.com/labs/logmein-hamachi_$HAMACHI_VERSION-1_amd64.deb
|
||||||
export HAMACHI_DATA=/host/var/lib/logmein-hamachi
|
|
||||||
export HAMACHI_VERSION=2.1.0.119
|
|
||||||
wget -O hamachi.deb https://secure.logmein.com/labs/logmein-hamachi_$HAMACHI_VERSION-1_amd64.deb
|
|
||||||
mkdir -p /etc/service/hamachi
|
|
||||||
cp /build/runit/hamachi /etc/service/hamachi/run
|
|
||||||
|
|
||||||
## Environment variables
|
|
||||||
echo -n $HAMACHI_DATA > /etc/container_environment/HAMACHI_DATA
|
|
||||||
@@ -1,8 +1,3 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Environment
|
## Environment
|
||||||
export_env HEADPHONES_CONFIG /host/etc/headphones/config.ini
|
export_env HEADPHONES_CONFIG /host/etc/headphones/config.ini
|
||||||
export_env HEADPHONES_CONFIG_DEFAULT /opt/headphones/config.ini
|
export_env HEADPHONES_CONFIG_DEFAULT /opt/headphones/config.ini
|
||||||
|
|||||||
1
build/scripts/jekyll.sh
Normal file
1
build/scripts/jekyll.sh
Normal file
@@ -0,0 +1 @@
|
|||||||
|
apt_install_permanent make net-tools python3
|
||||||
1
build/scripts/jenkins.sh
Normal file
1
build/scripts/jenkins.sh
Normal file
@@ -0,0 +1 @@
|
|||||||
|
apt_install_permanent make net-tools python3
|
||||||
@@ -1,8 +1,3 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
export_env KODI_ROOT /opt/kodi-server
|
export_env KODI_ROOT /opt/kodi-server
|
||||||
export_env KODI_VERSION 16.0
|
export_env KODI_VERSION 16.0
|
||||||
|
|||||||
@@ -1,7 +1 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Install
|
|
||||||
apt_install_permanent texlive-full python-pygments gnuplot
|
apt_install_permanent texlive-full python-pygments gnuplot
|
||||||
@@ -1,8 +1,3 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Environment
|
## Environment
|
||||||
export_env PHP_CONFIG /host/etc/php.ini
|
export_env PHP_CONFIG /host/etc/php.ini
|
||||||
export_env PHP_FCGI_CONFIG /etc/lighttpd/conf-enabled/15-fastcgi-php.conf
|
export_env PHP_FCGI_CONFIG /etc/lighttpd/conf-enabled/15-fastcgi-php.conf
|
||||||
|
|||||||
5
build/scripts/lighttpd.sh
Executable file → Normal file
5
build/scripts/lighttpd.sh
Executable file → Normal file
@@ -1,8 +1,3 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Environment
|
## Environment
|
||||||
export_env LIGHTTPD_VERSION_MAJOR 1.4
|
export_env LIGHTTPD_VERSION_MAJOR 1.4
|
||||||
export_env LIGHTTPD_VERSION_MINOR 39
|
export_env LIGHTTPD_VERSION_MINOR 39
|
||||||
|
|||||||
@@ -1,31 +1,17 @@
|
|||||||
#!/bin/bash
|
## Environment
|
||||||
set -e
|
export_env MINIDLNA_VERSION 1.1.1
|
||||||
source /build/config
|
export_env MINIDLNA_CONFIG /host/etc/minidlna.conf
|
||||||
set -x
|
export_env MINIDLNA_LOG /host/var/log/minidlna.log
|
||||||
|
export_env MINIDLNA_DATA /host/var/lib/minidlna
|
||||||
|
|
||||||
# MiniDLNA dependencies
|
## Dependencies
|
||||||
apt_install_permanent gettext libavutil-dev libavcodec-dev libavformat-dev libjpeg-dev libsqlite3-dev libexif-dev libid3tag0-dev libogg-dev libvorbis-dev libFLAC-dev
|
apt_install_permanent gettext libavutil-dev libavcodec-dev libavformat-dev libjpeg-dev libsqlite3-dev libexif-dev libid3tag0-dev libogg-dev libvorbis-dev libFLAC-dev
|
||||||
|
|
||||||
export MINIDLNA_VERSION=1.1.1
|
|
||||||
export MINIDLNA_CONFIG=/host/etc/minidlna.conf
|
|
||||||
export MINIDLNA_LOG=/host/var/log/minidlna.log
|
|
||||||
export MINIDLNA_DATA=/host/var/lib/minidlna
|
|
||||||
|
|
||||||
# MiniDLNA
|
# MiniDLNA
|
||||||
cd opt
|
cd /opt
|
||||||
wget http://downloads.sourceforge.net/project/minidlna/minidlna/$MINIDLNA_VERSION/minidlna-$MINIDLNA_VERSION.tar.gz
|
wget http://downloads.sourceforge.net/project/minidlna/minidlna/$MINIDLNA_VERSION/minidlna-$MINIDLNA_VERSION.tar.gz
|
||||||
tar xzf minidlna-$MINIDLNA_VERSION.tar.gz
|
tar xzf minidlna-$MINIDLNA_VERSION.tar.gz
|
||||||
cd minidlna-$MINIDLNA_VERSION
|
cd minidlna-$MINIDLNA_VERSION
|
||||||
./configure
|
./configure
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
|
|
||||||
## Runit script
|
|
||||||
mkdir /etc/service/minidlna
|
|
||||||
mv /build/runit/minidlna /etc/service/minidlna/run
|
|
||||||
|
|
||||||
## Environment variables
|
|
||||||
echo -n $MINIDLNA_VERSION > /etc/container_environment/MINIDLNA_VERSION
|
|
||||||
echo -n $MINIDLNA_CONFIG > /etc/container_environment/MINIDLNA_CONFIG
|
|
||||||
echo -n $MINIDLNA_LOG > /etc/container_environment/MINIDLNA_LOG
|
|
||||||
echo -n $MINIDLNA_DATA > /etc/container_environment/MINIDLNA_DATA
|
|
||||||
@@ -1,8 +1,3 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## MySQL
|
## MySQL
|
||||||
debconf-set-selections <<< 'mariadb-server mariadb-server/root_password password dummy'
|
debconf-set-selections <<< 'mariadb-server mariadb-server/root_password password dummy'
|
||||||
debconf-set-selections <<< 'mariadb-server mariadbql-server/root_password_again password dummy'
|
debconf-set-selections <<< 'mariadb-server mariadbql-server/root_password_again password dummy'
|
||||||
|
|||||||
7
build/scripts/php.sh
Executable file → Normal file
7
build/scripts/php.sh
Executable file → Normal file
@@ -1,10 +1,5 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Environment
|
## Environment
|
||||||
export_env PHP_VERSION 5.6.20
|
export_env PHP_VERSION 5.6.21
|
||||||
export_env PHP_CONFIG /usr/local/lib/php.ini
|
export_env PHP_CONFIG /usr/local/lib/php.ini
|
||||||
export_env PHP_TIMEZONE Europe/London
|
export_env PHP_TIMEZONE Europe/London
|
||||||
|
|
||||||
|
|||||||
5
build/scripts/phpmyadmin.sh
Executable file → Normal file
5
build/scripts/phpmyadmin.sh
Executable file → Normal file
@@ -1,8 +1,3 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## phpMyAdmin
|
## phpMyAdmin
|
||||||
export_env PMA_VERSION 4.6.0
|
export_env PMA_VERSION 4.6.0
|
||||||
export_env PMA_ROOT /var/www/html
|
export_env PMA_ROOT /var/www/html
|
||||||
|
|||||||
5
build/scripts/prepare.sh
Executable file → Normal file
5
build/scripts/prepare.sh
Executable file → Normal file
@@ -1,8 +1,3 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Create directories and files
|
## Create directories and files
|
||||||
mkdir /etc/container_environment
|
mkdir /etc/container_environment
|
||||||
mkdir /opt/init.d
|
mkdir /opt/init.d
|
||||||
|
|||||||
@@ -1,10 +1,5 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Pulseaudio
|
## Pulseaudio
|
||||||
apt_install_permanent pulseaudio
|
apt_install_permanent pulseaudio
|
||||||
|
|
||||||
## Setup environment
|
## Configuration
|
||||||
sed -i "1iexport PULSE_SERVER=host" /root/.profile
|
sed -i "1iexport PULSE_SERVER=host" /root/.profile
|
||||||
@@ -1,45 +1,21 @@
|
|||||||
#!/bin/bash
|
## Environment
|
||||||
set -e
|
export_env REDIS_CONFIG=/etc/redis/redis.conf
|
||||||
source /build/config
|
export_env REDIS_LOG=/host/var/log/redis/redis.log
|
||||||
set -x
|
export_env REDIS_DATA=/host/var/lib/redis
|
||||||
|
export_env REDIS_VERSION=stable
|
||||||
|
|
||||||
## Redis
|
## Redis (repository)
|
||||||
apt_install_permanent redis-server
|
apt_install_permanent redis-server
|
||||||
|
|
||||||
export REDIS_CONFIG=/etc/redis/redis.conf
|
## Reds (compile)
|
||||||
export REDIS_LOG=/host/var/log/redis/redis.log
|
cd /opt
|
||||||
export REDIS_DATA=/host/var/lib/redis
|
wget http://download.redis.io/releases/redis-$REDIS_VERSION.tar.gz
|
||||||
|
tar xzf redis-$REDIS_VERSION.tar.gz
|
||||||
|
cd redis-$REDIS_VERSION
|
||||||
|
make
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
mkdir -p `dirname $REDIS_CONFIG`
|
||||||
sed -i "s,^\(daemonize\s*\).*$,\1no," $REDIS_CONFIG
|
sed -i "s,^\(daemonize\s*\).*$,\1no," $REDIS_CONFIG
|
||||||
sed -i "s,^\(logfile\s*\).*$,\1$REDIS_LOG," $REDIS_CONFIG
|
sed -i "s,^\(logfile\s*\).*$,\1$REDIS_LOG," $REDIS_CONFIG
|
||||||
sed -i "s,^\(dir\s*\).*$,\1$REDIS_DATA," $REDIS_CONFIG
|
sed -i "s,^\(dir\s*\).*$,\1$REDIS_DATA," $REDIS_CONFIG
|
||||||
|
|
||||||
## Runit script
|
|
||||||
mkdir /etc/service/redis
|
|
||||||
mv /build/runit/redis /etc/service/redis/run
|
|
||||||
|
|
||||||
## Environment variables
|
|
||||||
echo -n $REDIS_CONFIG > /etc/container_environment/REDIS_CONFIG
|
|
||||||
echo -n $REDIS_LOG > /etc/container_environment/REDIS_LOG
|
|
||||||
echo -n $REDIS_DATA > /etc/container_environment/REDIS_DATA
|
|
||||||
|
|
||||||
|
|
||||||
## TODO
|
|
||||||
# ENV REDIS_VERSION stable
|
|
||||||
|
|
||||||
# RUN cd /opt && \
|
|
||||||
# wget http://download.redis.io/releases/redis-$REDIS_VERSION.tar.gz && \
|
|
||||||
# tar xzf redis-$REDIS_VERSION.tar.gz && \
|
|
||||||
# cd redis-$REDIS_VERSION && \
|
|
||||||
# make
|
|
||||||
|
|
||||||
# RUN chmod +x /opt/redis-$REDIS_VERSION/src/redis-server
|
|
||||||
|
|
||||||
# ENV REDIS_CONFIG /etc/redis/redis-server.conf
|
|
||||||
# ENV REDIS_LOG /host/var/log/redis/redis-server.log
|
|
||||||
# ENV REDIS_DATA /host/var/lib/redis
|
|
||||||
|
|
||||||
# RUN mkdir -p `dirname $REDIS_CONFIG`
|
|
||||||
# RUN cp /opt/redis-$REDIS_VERSION/redis.conf $REDIS_CONFIG
|
|
||||||
# RUN sed -i "s,^\(logfile\s*\).*$,\1$REDIS_LOG," $REDIS_CONFIG
|
|
||||||
# RUN sed -i "s,^\(dir\s*\).*$,\1$REDIS_DATA," $REDIS_CONFIG
|
|
||||||
@@ -1,7 +1 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Install runit
|
|
||||||
apt_install_permanent runit
|
apt_install_permanent runit
|
||||||
@@ -1,8 +1,3 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Environment
|
## Environment
|
||||||
export_env RAR_VERSION 4.1.1
|
export_env RAR_VERSION 4.1.1
|
||||||
export_env SABNZBD_CONFIG /host/etc/sabnzbd/sabnzbd.ini
|
export_env SABNZBD_CONFIG /host/etc/sabnzbd/sabnzbd.ini
|
||||||
|
|||||||
@@ -1,8 +1,3 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Environment
|
## Environment
|
||||||
export_env SICKBEARD_CONFIG /host/etc/sickbeard/config.ini
|
export_env SICKBEARD_CONFIG /host/etc/sickbeard/config.ini
|
||||||
export_env SICKBEARD_DATA /host/var/lib/sickbeard
|
export_env SICKBEARD_DATA /host/var/lib/sickbeard
|
||||||
|
|||||||
@@ -1,8 +1,3 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Environment
|
## Environment
|
||||||
export_env SONARR_DATA /host/var/lib/sonarr
|
export_env SONARR_DATA /host/var/lib/sonarr
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
#!/bin/bash
|
## Install OpenSSH
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Install the SSH server
|
|
||||||
apt_install_permanent openssh-server
|
apt_install_permanent openssh-server
|
||||||
mkdir /var/run/sshd
|
mkdir /var/run/sshd
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,3 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Subliminal
|
|
||||||
pip install git+git://github.com/Diaoul/subliminal.git
|
pip install git+git://github.com/Diaoul/subliminal.git
|
||||||
cat << EOF > /opt/subliminal
|
cat << EOF > /opt/subliminal
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|||||||
@@ -1,8 +1,3 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
export_env SYNCTHING_CONFIG /host/etc/syncthing
|
export_env SYNCTHING_CONFIG /host/etc/syncthing
|
||||||
export_env SYNCTHING_VERSION 0.12.20
|
export_env SYNCTHING_VERSION 0.12.20
|
||||||
|
|||||||
@@ -1,9 +1,3 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Install a syslog daemon
|
|
||||||
apt_install_permanent syslog-ng-core
|
apt_install_permanent syslog-ng-core
|
||||||
mkdir -p /var/lib/syslog-ng
|
mkdir -p /var/lib/syslog-ng
|
||||||
sed -i "s/^\(#SYSLOGNG_OPTS=\).*$/\1\"--no-caps --default-modules=affile,afprog,afsocket,afuser,basicfuncs,csvparser,dbparser,syslogformat\"/" /etc/default/syslog-ng
|
sed -i "s/^\(#SYSLOGNG_OPTS=\).*$/\1\"--no-caps --default-modules=affile,afprog,afsocket,afuser,basicfuncs,csvparser,dbparser,syslogformat\"/" /etc/default/syslog-ng
|
||||||
@@ -1,14 +1,9 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Transmission
|
|
||||||
apt_install_permanent transmission-daemon jq
|
|
||||||
|
|
||||||
## Environment
|
## Environment
|
||||||
export_env TRANSMISSION_CONFIG /host/etc/transmission
|
export_env TRANSMISSION_CONFIG /host/etc/transmission
|
||||||
export_env TRANSMISSION_TORRENTS /host/srv/torrents
|
export_env TRANSMISSION_TORRENTS /host/srv/torrents
|
||||||
export_env TRANSMISSION_DOWNLOAD /host/tmp/downloads
|
export_env TRANSMISSION_DOWNLOAD /host/tmp/downloads
|
||||||
export_env TRANSMISSION_COMPLETE /host/srv/downloads
|
export_env TRANSMISSION_COMPLETE /host/srv/downloads
|
||||||
export_env TRANSMISSION_LOG /host/var/log/transmission/error.log
|
export_env TRANSMISSION_LOG /host/var/log/transmission/error.log
|
||||||
|
|
||||||
|
## Transmission
|
||||||
|
apt_install_permanent transmission-daemon jq
|
||||||
@@ -1,24 +1,11 @@
|
|||||||
#!/bin/bash
|
## Dependency
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## UPnP Proxy dependency
|
|
||||||
apt_install_permanent uuid-dev
|
apt_install_permanent uuid-dev
|
||||||
|
|
||||||
## UPnP Proxy
|
## UPnP Proxy
|
||||||
cd opt
|
cd /opt
|
||||||
git clone git://git.savannah.nongnu.org/upnpproxy.git
|
git clone git://git.savannah.nongnu.org/upnpproxy.git
|
||||||
cd upnpproxy
|
cd upnpproxy
|
||||||
autoreconf || automake --add-missing
|
autoreconf || automake --add-missing
|
||||||
./configure
|
./configure
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
|
|
||||||
## Runit script
|
|
||||||
mkdir /etc/service/upnpproxy
|
|
||||||
mv /build/runit/upnpproxy /etc/service/upnpproxy/run
|
|
||||||
|
|
||||||
## Environment variables
|
|
||||||
export UPNPPROXY_CONFIG=/host/etc/upnpproxy.conf
|
|
||||||
echo -n $UPNPPROXY_CONFIG > /etc/container_environment/UPNPPROXY_CONFIG
|
|
||||||
|
|||||||
5
build/scripts/utilities.sh
Executable file → Normal file
5
build/scripts/utilities.sh
Executable file → Normal file
@@ -1,8 +1,3 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Often used tools
|
## Often used tools
|
||||||
apt_install_permanent psmisc wget curl python-pip git gawk zip gperf unzip bzip2 inetutils-ping inetutils-telnet rsync
|
apt_install_permanent psmisc wget curl python-pip git gawk zip gperf unzip bzip2 inetutils-ping inetutils-telnet rsync
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,3 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Environment
|
## Environment
|
||||||
import_env LIGHTTPD_CONFIG
|
import_env LIGHTTPD_CONFIG
|
||||||
export_env LIGHTTPD_DOMAINS /host/etc/lighttpd
|
export_env LIGHTTPD_DOMAINS /host/etc/lighttpd
|
||||||
|
|||||||
Reference in New Issue
Block a user