Skip to content

Commit

Permalink
feat: no longer require to be root user to call setup scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
JanHoefelmeyer committed Jul 23, 2024
1 parent 257c316 commit e06a181
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/scripts/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ and configures nginx for serving TLS connections.

As creating the folders needs to authenticate with the csaf_provider, the configurations of TLS server and Client certificate authentication should be set. So it is recommended to call the scripts in this order: `TLSConfigsForITest.sh`, `TLSClientConfigsForITest.sh`, `setupProviderForITest.sh`

Calling example (as root):
Calling example (as user with sudo privileges):
``` bash
curl --fail -O https://raw.githubusercontent.com/csaf-poc/csaf_distribution/main/docs/scripts/prepareUbuntuInstanceForITests.sh
bash prepareUbuntuInstanceForITests.sh
sudo bash prepareUbuntuInstanceForITests.sh

git clone https://github.com/csaf-poc/csaf_distribution.git # --branch <name>
pushd csaf_distribution/docs/scripts/
Expand Down
2 changes: 1 addition & 1 deletion docs/scripts/setupValidationService.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ echo '
remote_validator= { "url" = "http://localhost:8082", "presets" = ["mandatory"], "cache" = "/var/lib/csaf/validations.db" }
' | sudo tee --append /etc/csaf/config.toml

npm install pm2 -g
sudo npm install pm2 -g

pushd ~
git clone https://github.com/secvisogram/csaf-validator-service.git
Expand Down

0 comments on commit e06a181

Please sign in to comment.