Cleanups, write log files of sonarr and mysql to host
This commit is contained in:
16
build/config
16
build/config
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user