Skip to content

Conversation

@edwinvandeven
Copy link
Contributor

ee site delete example.com --all-no-prompt
Removes db, files and nginx config without asking user.
Useful to remove interactivity when calling from a remote server.

I've been working on a tool to mange multiple servers runing ee from one central place, but the required user interactivity in the scripts doesn't play very nice when calling remotely. You'd have to use something like pexpect quite a few times to get through the script which slows the whole process down a lot.

Therefore I propose to add options to bypass the prompts.

edwinvandeven added 2 commits May 14, 2014 13:08
ee site delete example.com --all-no-prompt
Removes db, files and nginx config without asking user. 
Useful to remove interactivity when calling from a remote server.
There was one fi too much
@edwinvandeven
Copy link
Contributor Author

Ok it's fine, shall I submit a new request or can you merge this one?

@MiteshShah
Copy link
Member

@edwinvandeven I'll test with other delete options if all works fine I'll merge your pull request

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@edwinvandeven wrong message
The correct message is

read -p "Are You Sure To Remove $DOMAIN Webroot (y/n): " ANSWER

REMOVEFILES() AND REMOVENGINX() had the REMOVEDB() confirmation message
@edwinvandeven
Copy link
Contributor Author

Alright, fixed again.
Sorry about that! I guess I was in a bit too much of a hurry when copy-pasting...

MiteshShah added a commit that referenced this pull request May 14, 2014
Allow deleting site without prompt
@MiteshShah MiteshShah merged commit 0a3ad99 into EasyEngine:master May 14, 2014
@EranSch
Copy link
Contributor

EranSch commented May 16, 2014

@edwinvandeven Nice thought! I too have been working on a similar integration. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants