Add init method to readme.
This commit is contained in:
parent
58c32abfc6
commit
fe01c0c546
|
@ -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
|
||||
```
|
||||
### 对所有的安全检查项进行审计
|
||||
```
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue