Fix some bug.

This commit is contained in:
Samson-W 2019-09-24 18:17:57 +08:00
parent 5ac0f976c9
commit 02a9a64fc0

View File

@ -155,8 +155,9 @@ while [[ $# > 0 ]]; do
--init) --init)
INIT_G_CONFIG=1 INIT_G_CONFIG=1
;; ;;
--final --final)
FINAL_G_CONFIG=1 FINAL_G_CONFIG=1
;;
*) *)
usage usage
;; ;;
@ -231,7 +232,7 @@ if [ $FINAL_G_CONFIG -eq 1 ]; then
aide --init aide --init
mv /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz mv /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz
fi fi
exit 0
fi fi
# If --allow-service-list is specified, don't run anything, just list the supported services # If --allow-service-list is specified, don't run anything, just list the supported services