Skip to content

Commit

Permalink
adjust upgrade script, documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
pbredenberg committed Apr 10, 2016
1 parent 5c3e376 commit e7f3990
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 15 deletions.
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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

3 changes: 1 addition & 2 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 8 additions & 8 deletions upgrade
Original file line number Diff line number Diff line change
@@ -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 {}" \;

0 comments on commit e7f3990

Please sign in to comment.