Last active
October 31, 2021 17:17
-
-
Save ahmadkakarr/984bf73d18da4164fcd89ff29e925551 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
subprocess.run('sudo systemctl status nginx', shell=True, check=True) | |
subprocess.run("sudo ufw allow 'Nginx Full'", shell=True, check=True) | |
subprocess.run('sudo ufw allow OpenSSH', shell=True, check=True) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment