#!/bin/bash

usage() {
	echo "Usage: $0 <username> <password>" >&2
	echo "Get your credentials from https://0memory.com/doc/package-management-BrEMVJLi8n" >&2
	exit
}

USERNAME="$1"
PASSWORD="$2"

[ -z "$USERNAME" ] && usage
[ -z "$PASSWORD" ] && usage

curl -u "$USERNAME:$PASSWORD" https://dl.0docker.com/ourai-debian.sh | sudo USERNAME="$USERNAME" PASSWORD="$PASSWORD" bash
sudo apt update
