Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117885882
init.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
714 B
Referenced Files
None
Subscribers
None
init.sh
View Options
#!/bin/bash
sed -i -r
\
-e
"s|DB_HOST|
$DB_HOST
|g"
\
-e
"s|DB_DATABASE|
$DB_DATABASE
|g"
\
-e
"s|DB_USERNAME|
$DB_USERNAME
|g"
\
-e
"s|DB_PASSWORD|
$DB_PASSWORD
|g"
\
/etc/pdns/pdns.conf
if
[[
$ROLE
==
"both"
]]
;
then
/usr/sbin/pdns_server --guardian
=
no --daemon
=
no --disable-syslog --log-timestamp
=
no --write-pid
=
no
&
mkdir /run/pdns-recursor
exec
/usr/sbin/pdns_recursor --daemon
=
no --write-pid
=
no --log-timestamp
=
no --disable-syslog
elif
[[
$ROLE
==
"recursor"
]]
;
then
exec
/usr/sbin/pdns_recursor --daemon
=
no --write-pid
=
no --log-timestamp
=
no --disable-syslog
else
exec
/usr/sbin/pdns_server --guardian
=
no --daemon
=
no --disable-syslog --log-timestamp
=
no --write-pid
=
no
fi
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Mon, Apr 6, 2:17 AM (1 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ba/33/c0939bb6b49631efa7d32fc4b228
Default Alt Text
init.sh (714 B)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline