From e7f39905319cec82f56c332401c2395080e9f914 Mon Sep 17 00:00:00 2001 From: Paul Bredenberg Date: Sun, 10 Apr 2016 16:11:33 -0400 Subject: [PATCH] adjust upgrade script, documentation --- README.md | 16 +++++++++++----- install | 3 +-- upgrade | 16 ++++++++-------- 3 files changed, 20 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index b71f38f..c0f069b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # LEMPDash -LEMPDash is a collection of bash tools to aid the creation of nginx sites. Includes nginx server block and mysql database creation, backup, destruction, etc. +Version 0.0.2 + +LEMPDash is a command line tool to help streamline a LEMP stack web hosting environment. Includes nginx server block and mysql database creation, backup, destruction, etc. + +This tool is comprised of various shell scripts and ideas collected from around the web, arbitration given as neccessary. ##System Requirements LEMPDash is written and tested on Ubuntu 14.04 only, all other buyers, beware! Unless you have alot of free time. @@ -35,9 +39,9 @@ Lempdash is invoked thusly: ldash ``` -LEMPDash must be run as sudo when executing processes on the system level, for instance, when creating or removing nginx server blocks. +LEMPDash must be run as root when executing processes on the system level, for instance, when creating or removing nginx server blocks, or when backing up to folder owned by the root user. -As of version (0.0.2), you can create or remove nginx server blocks, and MySQL databses/users. +As of version 0.0.2, you can create or remove nginx server blocks, and MySQL databses/users. ### cr (Create) Create a site: @@ -69,9 +73,11 @@ ldash rm dbuser username Note: Remove wants to do its' thing safely, so it will back up your site files automatically using zip, and place the backup in var/www/archive/YOURSITENAME. ## Future Stuff - * Support MariaDB, MongoDB -* Backups for sites/DBs +* Standalone backups for sites/DBs * Uninstall script +* Error summaries +* Server event notifications * Setup options for system specific configurations +* Leverage WP-CLI to manage WordPress Sites diff --git a/install b/install index e74bd3f..7baeff0 100755 --- a/install +++ b/install @@ -7,8 +7,7 @@ # Check dependencies for mission critical stuff type zip >/dev/null 2>&1 || echo "The package 'zip' is not installed on your system, so installing..." && apt-get install zip -# Copy all the things into bin - +# Copy all the things into /bin and /opt mkdir -p /opt/lempdash/tasks cp -R tasks /opt/lempdash cp lempdash /bin/ldash diff --git a/upgrade b/upgrade index e91b170..7251936 100755 --- a/upgrade +++ b/upgrade @@ -1,13 +1,13 @@ #!/usr/bin/env bash -# LEMPDash Install script -# Must be run with sudo priviliges - -# Make task scripts executlable -chmod +x lempdash -find ./tasks/ -type f -exec /bin/sh -c "file {} | grep -q executable && chmod +x {}" \; - -# Copy all the things +# LEMPDash Upgrade script +# Must be run with root priviliges +# Copy all the things into /bin and /opt +mkdir -p /opt/lempdash/tasks cp -R tasks /opt/lempdash cp lempdash /bin/ldash +# Make task scripts executlable +chmod +x /bin/ldash +find /opt/lempdash/tasks/ -type f -exec /bin/sh -c "file {} | grep -q executable && chmod +x {}" \; +