handle_domain_on_webserver.sh: first version ready for usage.
This commit is contained in:
parent
f264e231a7
commit
2e3a89908a
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,4 @@
|
|||||||
/BAK/*
|
/BAK/*
|
||||||
|
*.log
|
||||||
/conf/*.conf
|
/conf/*.conf
|
||||||
|
*.swp
|
||||||
|
119
conf/handle_domain_on_webserver.conf.sample
Normal file
119
conf/handle_domain_on_webserver.conf.sample
Normal file
@ -0,0 +1,119 @@
|
|||||||
|
## ===================================================================
|
||||||
|
## - Configuration File for "handle_domain_on_webserver.sh" Script
|
||||||
|
## ===================================================================
|
||||||
|
|
||||||
|
# - Primary Nameserver which supports NS Records for websites on this server
|
||||||
|
# -
|
||||||
|
DNS_SERVER=""
|
||||||
|
|
||||||
|
# - Secondary Nameserver which supports NS Records for websites on this server
|
||||||
|
# -
|
||||||
|
# - Leave empty if slave nameserver should be omitted.
|
||||||
|
# -
|
||||||
|
#DNS_SLAVE_SERVER=""
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# -----
|
||||||
|
# - How to access the namesever via ssh?
|
||||||
|
# -
|
||||||
|
# - Note:
|
||||||
|
# - Take care to provide an entry 'DNS_SSH_USER' for nameservers in his
|
||||||
|
# - authorized_keys file.
|
||||||
|
# -
|
||||||
|
# - The ssh-key must not have a password! Otherwise this script will
|
||||||
|
# - not work!
|
||||||
|
# -----
|
||||||
|
|
||||||
|
# - DNS_SSH_USER
|
||||||
|
# -
|
||||||
|
# - Defaults to 'manage-bind'
|
||||||
|
# -
|
||||||
|
#DNS_SSH_USER="manage-bind"
|
||||||
|
|
||||||
|
# - DNS_SSH_PORT
|
||||||
|
# -
|
||||||
|
# - Defaults to '22'
|
||||||
|
# -
|
||||||
|
#DNS_SSH_PORT=22
|
||||||
|
|
||||||
|
# - DNS_SSH_KEY
|
||||||
|
# -
|
||||||
|
# - Defaults to '/root/.ssh/id_rsa-dns1'
|
||||||
|
# -
|
||||||
|
#DNS_SSH_KEY=/root/.ssh/id_rsa-dns1
|
||||||
|
|
||||||
|
|
||||||
|
# -----
|
||||||
|
# - Scripts used on nameserver.
|
||||||
|
# -
|
||||||
|
# - Note:
|
||||||
|
# - The scripts must be accessable by dane_ssh_user. This
|
||||||
|
# - ca be realised by adding a concerning entry into sudo file
|
||||||
|
# -
|
||||||
|
# - for example:
|
||||||
|
# - manage-bind ALL=(root)NOPASSWD:/root/bin/bind/bind_*
|
||||||
|
# ------
|
||||||
|
|
||||||
|
# - SCRIPT_get_domain_by_hostname
|
||||||
|
# -
|
||||||
|
# - The full path to the script on the remote host.
|
||||||
|
# -
|
||||||
|
# - Defaults to '/root/bin/bind/bind_get_domain_by_hostname.sh'
|
||||||
|
# -
|
||||||
|
#SCRIPT_get_domain_by_hostname="/root/bin/bind/bind_get_domain_by_hostname.sh"
|
||||||
|
|
||||||
|
# - SCRIPT_remove_master_domain
|
||||||
|
# -
|
||||||
|
# - The full path to the script on the remote host.
|
||||||
|
# -
|
||||||
|
# - defaults to '/root/bin/bind/bind_remove_domain_on_master.sh'
|
||||||
|
# -
|
||||||
|
#SCRIPT_remove_master_domain="/root/bin/bind/bind_remove_domain_on_master.sh"
|
||||||
|
|
||||||
|
# - SCRIPT_remove_slave_domain
|
||||||
|
# -
|
||||||
|
# - The full path to the script on the remote host.
|
||||||
|
# -
|
||||||
|
# - defaults to '/root/bin/bind/bind_remove_domain_on_slave.sh'
|
||||||
|
# -
|
||||||
|
#SCRIPT_remove_slave_domain="/root/bin/bind/bind_remove_domain_on_slave.sh"
|
||||||
|
|
||||||
|
|
||||||
|
# -----
|
||||||
|
# - How to access the database service?
|
||||||
|
# -----
|
||||||
|
|
||||||
|
# - MYSQL_CREDENTIAL_ARGS
|
||||||
|
# -
|
||||||
|
# - Giving password on command line is insecure an sind mysql 5.5
|
||||||
|
# - you will get a warning doing so.
|
||||||
|
# -
|
||||||
|
# - Reading username/password fro file ist also possible, using MySQL/MariaDB
|
||||||
|
# - commandline parameter '--defaults-file'.
|
||||||
|
# -
|
||||||
|
# - Since Mysql Version 5.6, you can read username/password from
|
||||||
|
# - encrypted file.
|
||||||
|
# -
|
||||||
|
# - Create (encrypted) option file:
|
||||||
|
# - $ mysql_config_editor set --login-path=local --socket=/tmp/mysql.sock --user=root --password
|
||||||
|
# - $ Password:
|
||||||
|
# -
|
||||||
|
# - Create (encrypted) option file:
|
||||||
|
# - $ mysql_config_editor set --login-path=remote --host=<remote.host> --user=<remoteuser> --password
|
||||||
|
# - $ Password:
|
||||||
|
# -
|
||||||
|
# - To see what mysql_config_editor wrote to the .mylogin.cnf file, use the print command:
|
||||||
|
# - mysql_config_editor print --all
|
||||||
|
# -
|
||||||
|
# - Use of option file:
|
||||||
|
# - $ mysql --login-path=local ...
|
||||||
|
# -
|
||||||
|
# - Example
|
||||||
|
# - mysql_credential_args="--login-path=local"
|
||||||
|
# - mysql_credential_args="--defaults-file=/etc/mysql/debian.cnf" (Debian default)
|
||||||
|
# - mysql_credential_args="--defaults-file=/usr/local/mysql/sys-maint.cnf"
|
||||||
|
# -
|
||||||
|
# - Defaults to '--login-path=local'
|
||||||
|
# -
|
||||||
|
#MYSQL_CREDENTIAL_ARGS="--login-path=local"
|
1
delete_domain_related_configurations.sh
Symbolic link
1
delete_domain_related_configurations.sh
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
handle_domain_on_webserver.sh
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user