mirror of
https://github.com/dathere/ckan-devstaller.git
synced 2025-11-09 13:39:49 +00:00
feat: add installation options for interactive and non-interactive modes
This commit is contained in:
parent
2a12a08adf
commit
ee0c1ea32c
2 changed files with 20 additions and 5 deletions
13
install.bash
13
install.bash
|
|
@ -11,11 +11,18 @@ sudo apt install curl -y
|
|||
cd ~/
|
||||
|
||||
# Download the ckan-devstaller binary file
|
||||
curl -LO https://github.com/dathere/ckan-devstaller/releases/download/0.1.0/ckan-devstaller
|
||||
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 with defaults enabled
|
||||
./ckan-devstaller --default
|
||||
# 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue