mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
feat: no longer require to be root user to call setup scripts
This commit is contained in:
parent
257c316894
commit
8feddc70e1
2 changed files with 3 additions and 3 deletions
|
|
@ -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`
|
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
|
``` bash
|
||||||
curl --fail -O https://raw.githubusercontent.com/csaf-poc/csaf_distribution/main/docs/scripts/prepareUbuntuInstanceForITests.sh
|
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>
|
git clone https://github.com/csaf-poc/csaf_distribution.git # --branch <name>
|
||||||
pushd csaf_distribution/docs/scripts/
|
pushd csaf_distribution/docs/scripts/
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ echo '
|
||||||
remote_validator= { "url" = "http://localhost:8082", "presets" = ["mandatory"], "cache" = "/var/lib/csaf/validations.db" }
|
remote_validator= { "url" = "http://localhost:8082", "presets" = ["mandatory"], "cache" = "/var/lib/csaf/validations.db" }
|
||||||
' | sudo tee --append /etc/csaf/config.toml
|
' | sudo tee --append /etc/csaf/config.toml
|
||||||
|
|
||||||
npm install pm2 -g
|
sudo npm install pm2 -g
|
||||||
|
|
||||||
pushd ~
|
pushd ~
|
||||||
git clone https://github.com/secvisogram/csaf-validator-service.git
|
git clone https://github.com/secvisogram/csaf-validator-service.git
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue