Projects
home:pandora:RobinOS23
bind
_service:download_src_package:generate-rndc-key.sh
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_src_package:generate-rndc-key.sh of Package bind
#!/bin/bash if [ -r /etc/rc.d/init.d/functions ]; then . /etc/rc.d/init.d/functions else success() { echo $" OK " } failure() { echo -n " " echo $"FAILED" } fi # This script generates /etc/rndc.key if doesn't exist AND if there is no rndc.conf if [ ! -s /etc/rndc.key ] && [ ! -s /etc/rndc.conf ]; then echo -n $"Generating /etc/rndc.key:" if /usr/sbin/rndc-confgen -a -A hmac-sha256 > /dev/null 2>&1 then chmod 640 /etc/rndc.key chown root:named /etc/rndc.key [ -x /sbin/restorecon ] && /sbin/restorecon /etc/rndc.key success $"/etc/rndc.key generation" echo else rc=$? failure $"/etc/rndc.key generation" echo exit $rc fi fi
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2