Add init method to readme.

This commit is contained in:
Samson-W 2019-07-31 02:29:46 +08:00
parent 58c32abfc6
commit fe01c0c546
3 changed files with 3 additions and 1 deletions

View File

@ -31,6 +31,7 @@ hardening [INFO] Treating /home/test/harbian-audit/bin/hardening
$ git clone https://github.com/hardenedlinux/harbian-audit.git && cd harbian-audit
$ sudo cp debian/default /etc/default/cis-hardening
$ sudo sed -i "s#CIS_ROOT_DIR=.*#CIS_ROOT_DIR='$(pwd)'#" /etc/default/cis-hardening
$ sudo bin/hardening.sh --init
```
### 对所有的安全检查项进行审计
```

View File

@ -34,6 +34,7 @@ hardening [INFO] Treating /home/test/harbian-audit/bin/hardening
$ git clone https://github.com/hardenedlinux/harbian-audit.git && cd harbian-audit
$ sudo cp debian/default /etc/default/cis-hardening
$ sudo sed -i "s#CIS_ROOT_DIR=.*#CIS_ROOT_DIR='$(pwd)'#" /etc/default/cis-hardening
$ sudo bin/hardening.sh --init
$ sudo bin/hardening.sh --audit-all
hardening [INFO] Treating /home/test/harbian-audit/bin/hardening/1.1_install_updates.sh
1.1_install_updates [INFO] Working on 1.1_install_updates

2
debian/default vendored
View File

@ -1,6 +1,6 @@
# Default file for CIS Debian/CentOS hardening scripts
# Define here root directory for CIS debian hardening scripts
# Define here root directory for CIS debian/CentOS hardening scripts
CIS_ROOT_DIR='/opt/cis-hardening'
# If distor is Debian, set 1; It's default
# If distor is CentOS, set 2;