darkclean.sh 327 B

123456789101112
  1. # clean everything before sharing
  2. pushd `dirname $0`
  3. cd ..
  4. sudo rm -rf ./archives/*
  5. sudo rm -rf ./backups/*.caidx ./backups/casync-store.castr/*
  6. sudo rm -rf ./ignition/ssh/*
  7. sudo rm -rf ./volumes/caches/* ./volumes/db/* ./volumes/srv/webroot/*
  8. sudo chmod -R 0777 ./backups/casync-store.castr
  9. sudo chmod -R 0777 ./volumes
  10. popd