Cleanups, write log files of sonarr and mysql to host

This commit is contained in:
2015-12-31 13:39:36 +01:00
parent 257625ad72
commit d4381991e1
31 changed files with 49 additions and 53 deletions

View File

@@ -1,20 +1,20 @@
export LC_ALL=C
export DEBIAN_FRONTEND=noninteractive
apt_get_install='apt-get install -y --no-install-recommends'
apt_install='apt-get install -y --no-install-recommends'
apt_get_install_permanent() {
apt_install_permanent() {
echo $@ >> /build/permanent
$apt_get_install "$@"
$apt_install "$@"
}
apt_get_install_temporary() {
apt_install_temporary() {
echo $@ >> /build/temporary
$apt_get_install "$@"
$apt_install "$@"
}
apt_remove() {
apt-get -y --purge autoremove
apt-get autoremove -y --purge "$@"
}
export_env() {
@@ -25,7 +25,3 @@ export_env() {
import_env() {
export $1=`cat /etc/container_environment/$1`
}
add_host() {
echo "echo \"\$${1^^}_PORT_3306_TCP_ADDR $1\" >> /tmp/hosts" >> /opt/init.d/*_hosts
}