Function disableNginxSite

  • Disables a Nginx site by removing its symlink from /etc/nginx/sites-enabled.

    This will likely require sudo permissions if run with the default nginx dir (/etc/nginx/).

    Parameters

    • siteName: string
    • nginxDirPath: string = defaultNginxDirPath

    Returns Promise<boolean>

    true if the enabled symlink exists and was deleted. Otherwise, false.