Skip to content

Instantly share code, notes, and snippets.

@Vac1911
Last active March 15, 2021 21:01
Show Gist options
  • Save Vac1911/79fe43f096e931e43754ea0760bbe516 to your computer and use it in GitHub Desktop.
Save Vac1911/79fe43f096e931e43754ea0760bbe516 to your computer and use it in GitHub Desktop.
Using this as a hack to execute a script in container instances
#!/bin/bash
# Make sure we're not confused by old, incompletely-shutdown httpd
# context after restarting the container. httpd won't start correctly
# if it thinks it is already running.
rm -rf /run/httpd/* /tmp/httpd*
curl https://gist.githubusercontent.com/Vac1911/227c70665e273bb41347ff6b2945f5ba/raw > /etc/httpd/conf/httpd.conf
exec /usr/sbin/apachectl -DFOREGROUND
@christiante1101
Copy link

can u hack my account

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment