From c044b100b66f6106a9edacfd7eb6195845412ce9 Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Fri, 3 Jan 2014 16:37:37 +0530 Subject: [PATCH] Minor Update On Delete Options --- usr/local/sbin/easyengine | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/usr/local/sbin/easyengine b/usr/local/sbin/easyengine index 33204210..03d08952 100644 --- a/usr/local/sbin/easyengine +++ b/usr/local/sbin/easyengine @@ -969,7 +969,7 @@ PERMISSIONANDGIT() # Take Nginx Configuration In Git Version Control EEGITDIR=/etc/nginx - EEGITMESSAGE="Created New $WPNETWORKSITE $WPCACHEOPTION Website: $DOMAIN" + EEGITMESSAGE="Create Website With $WPNETWORKSITE $WPCACHEOPTION Option: $DOMAIN" EEGITCOMMIT } @@ -2014,21 +2014,28 @@ then # Check SITENAME Is Empty Or Not SITENAMECHECK=$3 + SITEDELETEARG=$4 EESITENAME - if [ "$4" = "--db" ] + # USE DEFAULT WHEN POSSIBLES + if [ "$SITEDELETEARG" = "" ] + then + SITEDELETEARG=--all + fi + + if [ "$SITEDELETEARG" = "--db" ] then # Remove Database REMOVEDB - elif [ "$4" = "--files" ] + elif [ "$SITEDELETEARG" = "--files" ] then # Remove Webroot REMOVEFILES - elif [ "$4" = "--all" ] || [ "$4" = "" ] + elif [ "$SITEDELETEARG" = "--all" ] then # Remove All Database And Webroot @@ -2043,7 +2050,7 @@ then # Take Nginx Configuration In Git Version Control EEGITDIR=/etc/nginx - EEGITMESSAGE="Delete Website with $4 Option: $DOMAIN" + EEGITMESSAGE="Delete Website With $SITEDELETEARG Option: $DOMAIN" EEGITCOMMIT fi