Skip to content

Commit

Permalink
Merge pull request #16 from guardian/aa-refine-names
Browse files Browse the repository at this point in the history
refine command names
  • Loading branch information
akash1810 authored Mar 27, 2020
2 parents 740000c + 7e7c4ef commit bfead5b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 19 deletions.
5 changes: 5 additions & 0 deletions script/locate
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

set -e

nginx -V 2>&1 | grep "configure arguments:" | sed 's/[^*]*conf-path=\([^ ]*\)\/nginx\.conf.*/\1/g'
5 changes: 0 additions & 5 deletions script/locate-nginx

This file was deleted.

1 change: 1 addition & 0 deletions script/locate-nginx
14 changes: 14 additions & 0 deletions script/restart
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

set -e

# colours
YELLOW='\033[1;33m'
NC='\033[0m' # no colour - reset console colour

echo -e "${YELLOW}Restarting nginx. This requires sudo access.${NC}"

if pgrep 'nginx' > /dev/null; then
sudo nginx -s stop
fi
sudo nginx
14 changes: 0 additions & 14 deletions script/restart-nginx

This file was deleted.

1 change: 1 addition & 0 deletions script/restart-nginx

0 comments on commit bfead5b

Please sign in to comment.