Dokuwiki Cleanup Script
#!/bin/bash function cleanup() { local data_path="$1" # full path to data directory of wiki # remove stale lock files (files which are 1-2 days old) find "${data_path}"/locks/ -name '*.lock' -type f -mtime +1 -delete } # cleanup DokuWiki installations (path to datadir, number of days) # some examples: cleanup /www/dokuwiki1/dir/data cleanup /www/dokuwiki2/dir/data # exit