Skip to content

Instantly share code, notes, and snippets.

@daveschafer
Last active July 9, 2021 19:55
Show Gist options
  • Save daveschafer/213a4ca8d4046aaafde77f5becfd0942 to your computer and use it in GitHub Desktop.
Save daveschafer/213a4ca8d4046aaafde77f5becfd0942 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Check if sudo is used
if [ "$(id -u)" != 0 ]; then
echo 'Sorry, you need to run this script with sudo'
exit 1
fi
# Header
clear
echo "#############################"
echo "## DKDBX Quickstart Script ##"
echo "#############################"
echo "\n\n"
echo "...Downloading Latest Repository from 'https://github.com/daveschafer/dockerized-kdbx.git'"
git clone https://github.com/daveschafer/dockerized-kdbx.git
cd dockerized-kdbx
echo
echo "Editor will be opened to edit the app.config file"
echo "Make sure to change variables to your needs.\n"
read -p "When finished, save with 'Ctrl+O' and close the editor with 'Ctrl+X' (press enter to continue)"
nano app.config
read -p "Start main script (press enter to continue)"
echo
chmod +x create-dockerized-kdbx.sh
bash ./create-dockerized-kdbx.sh
echo "DKDBX Quickstart finished"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment