Skip to content

Commit 6aab412

Browse files
logical bug fix
1 parent 956aaf1 commit 6aab412

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gyropilot.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,13 +379,13 @@ sudo rm -f /etc/nginx/sites-enabled/default
379379
echo "$GREEN Done! $END"
380380
echo "$YELLOW Resolving Nginx index Dir $END"
381381

382-
if [ -d "/var/www/html/" ]
382+
if ! [ -d "/var/www/html/" ]
383383
then
384+
echo "$GREEN Already solved before! $END"
385+
else
384386
sudo mv -f /var/www/html/index.nginx-debian.html /var/www/
385387
sudo rm -f -r /var/www/html
386388
echo "$GREEN Done! $END"
387-
else
388-
echo "$GREEN Already solved before! $END"
389389
fi
390390
$s1
391391
echo

0 commit comments

Comments
 (0)