Last active
August 29, 2015 14:12
-
-
Save bitcloud/9d13073e4d0bb708c253 to your computer and use it in GitHub Desktop.
Installscript for recent debian pdns server on docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export APT_LISTCHANGES_FRONTEND=none | |
export APT_LISTBUGS_FRONTEND=none | |
export DEBIAN_FRONTEND=noninteractive | |
MYSQLPW=<mysql_password> | |
PDNSPW=<pdns_mysql_password> | |
sed -e 's/ \(stable\|wheezy\)/ testing/ig' /etc/apt/sources.list > /etc/apt/sources.list.d/testing.list | |
sed -e 's/ \(stable\|wheezy\)/ unstable/ig' /etc/apt/sources.list | grep -v security > /etc/apt/sources.list.d/unstable.list | |
aptitude update | |
aptitude dist-upgrade -q -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confnew" | |
aptitude install -y debconf-utils vim tmux apt-listbugs apt-listchanges | |
debconf-set-selections << EOF | |
mysql-server-5.5 mysql-server-5.5/start_on_boot boolean true | |
mysql-server-5.5 mysql-server/root_password_again password $MYSQLPW | |
mysql-server-5.5 mysql-server/root_password password $MYSQLPW | |
pdns-server pdns-server/allowrecursion string 127.0.0.1 | |
pdns-server pdns-server/localaddress string 0.0.0.0 | |
pdns-backend-mysql pdns-backend-mysql/database-type select mysql | |
pdns-backend-mysql pdns-backend-mysql/db/dbname string pdns | |
pdns-backend-mysql pdns-backend-mysql/db/app-user string pdns | |
pdns-backend-mysql pdns-backend-mysql/dbconfig-install boolean true | |
pdns-backend-mysql pdns-backend-mysql/mysql/method select unix socket | |
pdns-backend-mysql pdns-backend-mysql/mysql/admin-user string root | |
pdns-backend-mysql pdns-backend-mysql/mysql/admin-pass password $MYSQLPW | |
pdns-backend-mysql pdns-backend-mysql/mysql/app-pass password $PDNSPW | |
pdns-backend-mysql pdns-backend-mysql/password-confirm password $MYSQLPW | |
pdns-backend-mysql pdns-backend-mysql/app-password-confirm password $PDNSPW | |
EOF | |
aptitude install -y mysql-server pdns-server pdns-backend-mysql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment