Skip to content

Commit ee0c1ea

Browse files
committed
feat: add installation options for interactive and non-interactive modes
1 parent 2a12a08 commit ee0c1ea

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,18 @@
1919
> [!NOTE]
2020
> The `/etc/ckan/default/ckan.ini` config file will have its comments removed for now. There are plans to fix this in a future release of `ckan-devstaller`.
2121
22-
Paste this into your new Ubuntu 22.04 instance's terminal:
22+
You have two common options to choose from for installation. Paste one of the following scripts into your new Ubuntu 22.04 instance's terminal.
23+
24+
### Install with non-interactive mode (default config)
25+
26+
```bash
27+
wget -O - https://github.com/dathere/ckan-devstaller/releases/download/0.2.0/install.bash | bash -s default
28+
```
29+
30+
### Install with interactive mode
2331

2432
```bash
25-
wget -O - https://github.com/dathere/ckan-devstaller/releases/download/0.1.0/install.bash | bash
33+
wget -O - https://github.com/dathere/ckan-devstaller/releases/download/0.2.0/install.bash | bash
2634
```
2735

2836
## Demos

install.bash

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,18 @@ sudo apt install curl -y
1111
cd ~/
1212

1313
# Download the ckan-devstaller binary file
14-
curl -LO https://github.com/dathere/ckan-devstaller/releases/download/0.1.0/ckan-devstaller
14+
curl -LO https://github.com/dathere/ckan-devstaller/releases/download/0.2.0/ckan-devstaller
1515

1616
# Add execute permission to ckan-devstaller binary file
1717
sudo chmod +x ./ckan-devstaller
1818

19-
# Run the ckan-devstaller binary file with defaults enabled
20-
./ckan-devstaller --default
19+
# Run the ckan-devstaller binary file
20+
# If the user provides an argument "default", run ckan-devstaller in non-interactive mode with the default config
21+
# Otherwise run ckan-devstaller in interactive mode
22+
flag=$1
2123

24+
if [ $flag == "default" ]; then
25+
./ckan-devstaller --default
26+
else
27+
./ckan-devstaller
28+
fi

0 commit comments

Comments
 (0)