Skip to content

Commit 2af176e

Browse files
author
Kristan Kenney
committed
Merge branch 'cli-scripts-comments' into refactor/scripts
2 parents 86b06ef + 371f3cf commit 2af176e

File tree

422 files changed

+1087
-104
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

422 files changed

+1087
-104
lines changed

bin/v-acknowledge-user-notification

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22
# info: update user notification
33
# options: USER NOTIFICATION
4+
# labels:
45
#
56
# The function updates user notification.
67

bin/v-add-backup-host

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/bin/bash
22
# info: add backup host
33
# options: TYPE HOST USERNAME PASSWORD [PATH] [PORT]
4+
# labels:
5+
#
6+
# example: v-add-backup-host sftp backup.acme.com admin p4$$w@Rd
47
#
58
# This function adds a backup host
69

bin/v-add-cron-hestia-autoupdate

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22
# info: add cron job for hestia autoupdates
33
# options: MODE
4+
# labels:
45
#
56
# The function adds cronjob for hestia autoupdate from apt or git.
67

bin/v-add-cron-job

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
#!/bin/bash
22
# info: add cron job
33
# options: USER MIN HOUR DAY MONTH WDAY COMMAND [JOB] [RESTART]
4+
# labels:
5+
#
6+
# example: v-add-cron-job admin * * * * * sudo /usr/local/hestia/bin/v-backup-users
47
#
58
# The function adds a job to cron daemon. When executing commands, any output
6-
# is mailed to user's email if parameter REPORTS is set to 'yes'.
9+
# is mailed to user's email if parameter REPORTS is set to 'yes'.
710

811

912
#----------------------------------------------------------#

bin/v-add-cron-letsencrypt-job

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22
# info: add letsencrypt cronjob
33
# options: NONE
4+
# labels:
45
#
56
# The script for enabling letsencrypt cronjob
67

bin/v-add-cron-reports

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/bin/bash
22
# info: add cron reports
3-
# options: user
3+
# options: USER
4+
# labels:
5+
#
6+
# example: v-add-cron-reports admin
47
#
58
# The script for enabling reports on cron tasks and administrative
69
# notifications.

bin/v-add-cron-restart-job

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22
# info: add cron reports
33
# options: NONE
4+
# labels:
45
#
56
# The script for enabling restart cron tasks
67

bin/v-add-database

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
#!/bin/bash
22
# info: add database
33
# options: USER DATABASE DBUSER DBPASS [TYPE] [HOST] [CHARSET]
4+
# labels:
45
#
5-
# The function creates the database concatenating username and user_db.
6+
# example: v-add-database admin wordpress_db matt qwerty123
7+
#
8+
# The function creates the database concatenating username and user_db.
69
# Supported types of databases you can get using v-list-sys-config script.
710
# If the host isn't stated and there are few hosts configured on the server,
811
# then the host will be defined by one of three algorithms. "First" will choose

bin/v-add-database-host

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/bin/bash
22
# info: add new database server
3-
# options: TYPE HOST DBUSER DBPASS [MAX_DB] [CHARSETS] [TEMPLATE]
3+
# options: TYPE HOST DBUSER DBPASS [MAX_DB] [CHARSETS] [TEMPLATE] [PORT]
4+
# labels:
5+
#
6+
# example: v-add-database-host mysql localhost alice p@$$wOrd
47
#
58
# The function add new database server to the server pool. It supports local
69
# and remote database servers, which is useful for clusters. By adding a host

bin/v-add-dns-domain

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/bin/bash
22
# info: add dns domain
33
# options: USER DOMAIN IP [NS1] [NS2] [NS3] [..] [NS8] [RESTART]
4+
# labels: dns
5+
#
6+
# example: v-add-dns-domain admin example.com ns1.example.com ns2.example.com yes
47
#
58
# The function adds DNS zone with records defined in the template. If the exp
69
# argument isn't stated, the expiration date value will be set to next year.

0 commit comments

Comments
 (0)