Skip to content

Commit

Permalink
fix(system:nuke): only delete in data-dir and preserve conf.d folders
Browse files Browse the repository at this point in the history
  • Loading branch information
s4mpl3d committed May 8, 2024
1 parent 0750f05 commit ee8c0ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions commands/system/nuke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ function system:nuke() {
system:destroy

_logRed "Removing data"
cd ${ROOT_DIR}
sudo find ./data/* -maxdepth 1 -not -name .gitkeep -exec rm -rf {} ';'
sudo find ${DATA_DIR} -type d ! -name "conf.d" -delete

_logGreen "Finished nuking successfully"
}
Expand Down

0 comments on commit ee8c0ba

Please sign in to comment.