Jaap Marcus 2 years ago
parent
commit
2efc1f007a
4 changed files with 15 additions and 14 deletions
  1. 3 3
      bin/v-add-cron-letsencrypt-job
  2. 1 5
      bin/v-add-cron-reports
  3. 2 3
      bin/v-add-cron-restart-job
  4. 9 3
      bin/v-add-database

+ 3 - 3
bin/v-add-cron-letsencrypt-job

@@ -1,8 +1,8 @@
 #!/bin/bash
-# info: Add cron job for Let's Encrypt certificates
+# info: Add cron job to generate lets encrypt certificate after a domain has been addd.
 # options: NONE
-#
-# This function adds a new cron job for Let's Encrypt.
+# example: v-add-letsencrypt-job
+
 
 #----------------------------------------------------------#
 #                Variables & Functions                     #

+ 1 - 5
bin/v-add-cron-reports

@@ -1,11 +1,7 @@
 #!/bin/bash
-# info: Add cron reports
+# info: Enable the option to send the user cronjob output that has been generated
 # options: USER
-#
 # example: v-add-cron-reports user
-#
-# This function for enabling reports on cron tasks and administrative
-# notifications.
 
 #----------------------------------------------------------#
 #                Variables & Functions                     #

+ 2 - 3
bin/v-add-cron-restart-job

@@ -1,8 +1,7 @@
 #!/bin/bash
-# info: Enable the restart cronjob
+# info: Enable the restart cronjobs to restart services in Hestia on demand
 # options: NONE
-#
-# This function for enabling restart cron tasks
+
 
 #----------------------------------------------------------#
 #                Variables & Functions                     #

+ 9 - 3
bin/v-add-database

@@ -1,8 +1,14 @@
 #!/bin/bash
-# info: Add database
+# info: Add a new Database to the user.
 # options: USER DATABASE DBUSER DBPASS [TYPE] [HOST] [CHARSET]
-#
-# example: v-add-database user wordpress_db matt qwerty123
+# variable: DATABASE | Database name by default USER will be prepend.
+# variable: DBUSER | Database username by default USER will be prepend.
+# variable: DBPASS | Password
+# variable: TYPE | mysql or pgsql
+# variable: HOST | Hostname of database server. Need to exist in /conf/{db}.conf
+# variable: CHARSET | Character set used for Mysql / Postgresql
+# example: v-add-database user wordpress matt qwerty123 mysql
+# example: v-add-database user test test 1234ABCD pgsql remote.db
 #
 # This function creates the database concatenating username and user_db.
 # Supported types of databases you can get using v-list-sys-config script.