diff --git a/error/blog.html b/error/blog.html index 4548fe1..268aa8b 100644 --- a/error/blog.html +++ b/error/blog.html @@ -36,7 +36,7 @@
 
 
-Home +Home
+-------------------------------------------------------+ diff --git a/error/git.html b/error/git.html index 41ebcf3..4ad4699 100644 --- a/error/git.html +++ b/error/git.html @@ -36,7 +36,7 @@
 
 
-Home +Home
+-------------------------------------------------------+ diff --git a/error/irc.html b/error/irc.html index a4dc967..ca2172c 100644 --- a/error/irc.html +++ b/error/irc.html @@ -36,7 +36,7 @@
 
 
-Home +Home
+-------------------------------------------------------+ diff --git a/error/proj.html b/error/proj.html index 6fa1126..6417d59 100644 --- a/error/proj.html +++ b/error/proj.html @@ -36,7 +36,7 @@
 
 
-Home +Home
+-------------------------------------------------------+ diff --git a/error/wiki.html b/error/wiki.html index 0279ebe..07aca49 100644 --- a/error/wiki.html +++ b/error/wiki.html @@ -36,7 +36,7 @@
 
 
-Home +Home
+-------------------------------------------------------+ diff --git a/nginxd b/nginxd index 9c393c0..8c25c69 100755 --- a/nginxd +++ b/nginxd @@ -34,7 +34,7 @@ link () { # Adds a unit so that nginx can use it, also sets up sym links. # add [unit] add () { - echo TODO: Enable $1 + echo Enabling $1 cp $unitsd/$1 /etc/nginx/sites-available link $1 } @@ -42,7 +42,7 @@ add () { # Remove a unit so that nginx does not use it anymore, also sets up sym links. # remove [unit] remove () { - echo TODO: Remove $1 + echo Removing $1 rm -f /etc/nginx/sites-enabled/$1 } @@ -137,3 +137,6 @@ then else error "No operation set." 1 fi + +# Finally we test the new configs, and restart nginx +service nginx testconfig && systemctl restart nginx || error "nginx config test failed..." 1