mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 21:34:11 -07:00
aligned db scripts with the name convention
This commit is contained in:
parent
a7321e9ab2
commit
370569a82b
6 changed files with 2 additions and 2 deletions
47
bin/v-unsuspend-database-host
Executable file
47
bin/v-unsuspend-database-host
Executable file
|
@ -0,0 +1,47 @@
|
|||
#!/bin/bash
|
||||
# info: unsuspend database server
|
||||
# options: TYPE HOST
|
||||
#
|
||||
# The function for unsuspending a database server.
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Variable&Function #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
# Argument defenition
|
||||
type=$1
|
||||
host=$2
|
||||
|
||||
# Includes
|
||||
source $VESTA/conf/vesta.conf
|
||||
source $VESTA/func/main.sh
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Verifications #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
check_args '2' "$#" 'TYPE HOST'
|
||||
validate_format 'type' 'host'
|
||||
is_system_enabled "$DB_SYSTEM"
|
||||
is_object_valid "../../conf/$type" 'HOST' "$host"
|
||||
is_object_suspended "../../conf/$type" 'HOST' "$host"
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Action #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
# Unsuspend database creation on a server
|
||||
update_object_value "../../conf/$type" 'HOST' "$host" '$SUSPENDED' 'no'
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Vesta #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
# Logging
|
||||
log_event "$OK" "$EVENT"
|
||||
|
||||
exit
|
Loading…
Add table
Add a link
Reference in a new issue