mirror of
https://github.com/dathere/ckan-devstaller.git
synced 2025-11-09 21:39:49 +00:00
feat: add installation options for interactive and non-interactive modes
This commit is contained in:
parent
2a12a08adf
commit
0b01a12488
2 changed files with 20 additions and 5 deletions
12
README.md
12
README.md
|
|
@ -19,10 +19,18 @@
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
> 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`.
|
> 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`.
|
||||||
|
|
||||||
Paste this into your new Ubuntu 22.04 instance's terminal:
|
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.
|
||||||
|
|
||||||
|
### Install with non-interactive mode (default config)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
wget -O - https://github.com/dathere/ckan-devstaller/releases/download/0.1.0/install.bash | bash
|
wget -O - https://github.com/dathere/ckan-devstaller/releases/download/0.2.0/install.bash | bash -s default
|
||||||
|
```
|
||||||
|
|
||||||
|
### Install with interactive mode
|
||||||
|
|
||||||
|
```bash
|
||||||
|
wget -O - https://github.com/dathere/ckan-devstaller/releases/download/0.2.0/install.bash | bash
|
||||||
```
|
```
|
||||||
|
|
||||||
## Demos
|
## Demos
|
||||||
|
|
|
||||||
13
install.bash
13
install.bash
|
|
@ -11,11 +11,18 @@ sudo apt install curl -y
|
||||||
cd ~/
|
cd ~/
|
||||||
|
|
||||||
# Download the ckan-devstaller binary file
|
# 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
|
# Add execute permission to ckan-devstaller binary file
|
||||||
sudo chmod +x ./ckan-devstaller
|
sudo chmod +x ./ckan-devstaller
|
||||||
|
|
||||||
# Run the ckan-devstaller binary file with defaults enabled
|
# Run the ckan-devstaller binary file
|
||||||
./ckan-devstaller --default
|
# 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