mirror of
https://github.com/dathere/ckan-devstaller.git
synced 2025-11-09 13:39:49 +00:00
28 lines
709 B
Bash
28 lines
709 B
Bash
#!/usr/bin/env bash
|
|
|
|
# Update/Upgrade system dependencies
|
|
sudo apt update -y
|
|
sudo apt upgrade -y
|
|
|
|
# Install curl
|
|
sudo apt install curl -y
|
|
|
|
# Change to the home directory
|
|
cd ~/
|
|
|
|
# Download the ckan-devstaller binary file
|
|
curl -LO https://github.com/dathere/ckan-devstaller/releases/download/0.2.0/ckan-devstaller
|
|
|
|
# Add execute permission to ckan-devstaller binary file
|
|
sudo chmod +x ./ckan-devstaller
|
|
|
|
# Run the ckan-devstaller binary file
|
|
# If the user provides an argument "default", run ckan-devstaller in non-interactive mode with the default config
|
|
# Otherwise run ckan-devstaller in interactive mode
|
|
flag=$1
|
|
|
|
if [ $flag == "default" ]; then
|
|
./ckan-devstaller --default
|
|
else
|
|
./ckan-devstaller
|
|
fi
|