Skip to content

Commit

Permalink
ask for data
Browse files Browse the repository at this point in the history
Now we ask for default and tools site if empty.
  • Loading branch information
QROkes committed Jul 11, 2019
1 parent be518f2 commit dffeaaa
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions plugins/webinoly
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ elif [[ -n $tools_port ]]; then

elif [[ -n $tools_site ]]; then
check_for_nginx -ask
if [[ $tools_site == true ]]; then
echo "${gre}Please, enter a valid domain to access the Tools Section! ${end}"
read -p "${blu}Domain: ${end}" tools_site
tools_site=${tools_site:-NeverMatchDotCom}
fi

if [[ -a /etc/nginx/sites-available/$tools_site ]]; then
# Check for previous assigned domain and remove
if [[ -n $(conf_read tools-site) ]]; then
Expand Down Expand Up @@ -527,6 +533,12 @@ elif [[ -n $yoast_sitemap ]]; then

elif [[ -n $default_site ]]; then
check_for_nginx -ask
if [[ $default_site == true ]]; then
echo "${gre}Please, enter a valid option to set the Default-Site server response! ${end}"
read -p "${blu}default/blackhole or any existing domain: ${end}" default_site
default_site=${default_site:-NeverMatchDotCom}
fi

if [[ $default_site == "default" ]]; then
if [[ -a /opt/webinoly/templates/source/default ]]; then
sudo cat /opt/webinoly/templates/source/default >| /etc/nginx/sites-available/default
Expand Down

0 comments on commit dffeaaa

Please sign in to comment.