Skip to content

Instantly share code, notes, and snippets.

@KingsleyOmon-Edo
KingsleyOmon-Edo / post_install.sh
Created October 23, 2017 23:43 — forked from waleedahmad/post_install.sh
Ubuntu post installation script for installing software of your choice.
#!/bin/bash
curl_check ()
{
echo "Checking for curl..."
if command -v curl > /dev/null; then
echo "Detected curl..."
else
echo "Installing curl..."
apt-get install -q -y curl
@waleedahmad
waleedahmad / post_install.sh
Last active April 12, 2024 14:49
Ubuntu post installation script for installing software of your choice.
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
else
#Update and Upgrade
echo "Updating and Upgrading"
apt-get update && sudo apt-get upgrade -y