From bc7f02fb75e17e3cbbc9aef64bef0f2b8da43426 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristhian=20Mart=C3=ADnez=20Ochoa?= Date: Sat, 27 Oct 2018 18:54:13 -0600 Subject: [PATCH] command improvements - Arguments are now case insensitive - server-update now check if source files exist before update. - some minor improvements to prevent errors. --- lib/install | 2 +- plugins/httpauth | 2 +- plugins/log | 8 ++++---- plugins/site | 10 +++++----- plugins/stack | 8 ++++---- plugins/webinoly | 18 +++++++++++------- weby | 2 +- 7 files changed, 27 insertions(+), 23 deletions(-) diff --git a/lib/install b/lib/install index 722af07..ad02051 100644 --- a/lib/install +++ b/lib/install @@ -480,7 +480,7 @@ php_tool() { mysql_tool() { api-events_update im5 - sudo mkdir /var/www/$(conf_read tools-port)/htdocs/pma + sudo mkdir -p /var/www/$(conf_read tools-port)/htdocs/pma sudo wget --timeout=15 -t 1 -qrO /var/www/$(conf_read tools-port)/htdocs/pma.tar.xz https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.tar.xz sudo tar -xf /var/www/$(conf_read tools-port)/htdocs/pma.tar.xz -C /var/www/$(conf_read tools-port)/htdocs/pma sudo mv /var/www/$(conf_read tools-port)/htdocs/pma/phpMyAdmin-*-all-languages/* /var/www/$(conf_read tools-port)/htdocs/pma/ diff --git a/plugins/httpauth b/plugins/httpauth index 37c7267..a2e61d3 100644 --- a/plugins/httpauth +++ b/plugins/httpauth @@ -1,6 +1,6 @@ #!/bin/bash source /opt/webinoly/lib/general -opt="$1" +opt=${1,,} # Http-Authentication Plugin # Syntax: httpauth