Explanation of the Script:
System Update: Updates the package list and upgrades installed packages to the latest versions.
Install Utilities: Installs zip and unzip using apt.
Install NGINX: Installs the Nginx web server package.
Remove Sample Pages: Removes the default sample pages from /var/www/html.
Clone Login App: Clones the GitHub repository into the Nginx document root /var/www/html.
Set Permissions: Adjusts permissions for Nginx to serve the files correctly.
Restart NGINX: Restarts the Nginx service to apply the changes.
Verify App Loading: Uses curl to check if the app is successfully served by Nginx (checks for an HTTP 200 response).
Explanation of the Script: System Update: Updates the package list and upgrades installed packages to the latest versions. Install Utilities: Installs zip and unzip using apt. Install NGINX: Installs the Nginx web server package. Remove Sample Pages: Removes the default sample pages from /var/www/html. Clone Login App: Clones the GitHub repository into the Nginx document root /var/www/html. Set Permissions: Adjusts permissions for Nginx to serve the files correctly. Restart NGINX: Restarts the Nginx service to apply the changes. Verify App Loading: Uses curl to check if the app is successfully served by Nginx (checks for an HTTP 200 response).