Skip to content

Instantly share code, notes, and snippets.

@lmbacelar
lmbacelar / nginx_install.pl
Last active August 19, 2022 08:39
Arch Linux Nginx install ($JAIL chroot according to arch wiki). Use sudo perl nginx_install.pl. Uncomment # system($_[0]); line to perform actions.
#a/usr/bin/perl
# This script was hastily cobbled together for my own use. It can
# probably break your system. Use at your own risk.
$JAIL = "/srv/http";
$USER = "http";
$GROUP = "http";
$WWW_DIR = "www";
sub run{