Skip to content

Commit

Permalink
7 lines or less
Browse files Browse the repository at this point in the history
  • Loading branch information
the1Riddle committed Dec 19, 2023
1 parent 63629a5 commit d7d166b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions 0x12-web_stack_debugging_2/100-fix_in_7_lines_or_less
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
# making task 1-run_nginx_as_nginx 7 lines long
sed -i "s/80 /8080 /g" /etc/nginx/sites-available/default
sed -i "s/#user www-data/user nginx/g" /etc/nginx/nginx.conf
chmod 755 /etc/nginx/nginx.conf
pkill -9 apache
su nginx -c "service nginx restart"

0 comments on commit d7d166b

Please sign in to comment.