Skip to content

Instantly share code, notes, and snippets.

@hjbotha
hjbotha / free_ports.sh
Last active Apr 24, 2021
Free ports 80 and 443 on Synology NAS
View free_ports.sh
#! /bin/bash
# NEWLY ADDED BACKUP FUNCTIONALITY IS NOT FULLY TESTED YET, USE WITH CARE, ESPECIALLY DELETION
# Steps to install
# Save this script in one of your shares
# Backup /usr/syno/share/nginx/ as follows:
# # cd /usr/syno/share/
# # tar cvf ~/nginx.tar nginx
# Run this script as root
# Reboot and ensure everything is still working