12345678910111213141516171819202122232425262728293031 |
- #!/usr/bin/env bash
- parent="${BASH_SOURCE[0]}"
- parent=${parent%/*}
- [[ -f $parent/script-functions ]] && . "$parent"/script-functions || exit 1
- is_root
- dnf install -y nginx || exit $?
- cat <<- 'EOF' > /etc/nginx/conf.d/hartmanlab.conf
- server {
- listen 80 default_server;
- server_name localhost;
- location /cockpit {
- proxy_pass http://localhost:9090;
- }
- }
- EOF
-
-
-
-
- systemctl enable --now nginx
- exit $?
|