Skip to content

Commit 1c43e78

Browse files
author
Kristan Kenney
committed
Merge branch 'refactor/scripts' into staging/fixes
2 parents 86b06ef + a505f7b commit 1c43e78

File tree

423 files changed

+1088
-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.

423 files changed

+1088
-104
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ All notable changes to this project will be documented in this file.
2222
- Introduced caching templates for nginx + php-fpm configurations - thanks **@cmstew**!
2323
- Fixed an issue where DNS cluster updates could fail due to the format of a DKIM record in an available zone - thanks **@jrohde**!
2424
- Improved the behavior of nginx SSL SNI detection to reject connections for domains which have no SSL certificate - thanks **@myrevery**!
25+
- Improved the quality of comment formatting in command line scripts - thanks **@bisubus**!
2526

2627
## [1.3.0] - Major Release (Feature / Quality Update)
2728
### Features

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

0 commit comments

Comments
 (0)