Browse Source

Minor Update On Delete Options

old-stable
Mitesh Shah 11 years ago
parent
commit
c044b100b6
  1. 17
      usr/local/sbin/easyengine

17
usr/local/sbin/easyengine

@ -969,7 +969,7 @@ PERMISSIONANDGIT()
# Take Nginx Configuration In Git Version Control # Take Nginx Configuration In Git Version Control
EEGITDIR=/etc/nginx EEGITDIR=/etc/nginx
EEGITMESSAGE="Created New $WPNETWORKSITE $WPCACHEOPTION Website: $DOMAIN" EEGITMESSAGE="Create Website With $WPNETWORKSITE $WPCACHEOPTION Option: $DOMAIN"
EEGITCOMMIT EEGITCOMMIT
} }
@ -2014,21 +2014,28 @@ then
# Check SITENAME Is Empty Or Not # Check SITENAME Is Empty Or Not
SITENAMECHECK=$3 SITENAMECHECK=$3
SITEDELETEARG=$4
EESITENAME EESITENAME
if [ "$4" = "--db" ] # USE DEFAULT WHEN POSSIBLES
if [ "$SITEDELETEARG" = "" ]
then
SITEDELETEARG=--all
fi
if [ "$SITEDELETEARG" = "--db" ]
then then
# Remove Database # Remove Database
REMOVEDB REMOVEDB
elif [ "$4" = "--files" ] elif [ "$SITEDELETEARG" = "--files" ]
then then
# Remove Webroot # Remove Webroot
REMOVEFILES REMOVEFILES
elif [ "$4" = "--all" ] || [ "$4" = "" ] elif [ "$SITEDELETEARG" = "--all" ]
then then
# Remove All Database And Webroot # Remove All Database And Webroot
@ -2043,7 +2050,7 @@ then
# Take Nginx Configuration In Git Version Control # Take Nginx Configuration In Git Version Control
EEGITDIR=/etc/nginx EEGITDIR=/etc/nginx
EEGITMESSAGE="Delete Website with $4 Option: $DOMAIN" EEGITMESSAGE="Delete Website With $SITEDELETEARG Option: $DOMAIN"
EEGITCOMMIT EEGITCOMMIT
fi fi

Loading…
Cancel
Save