uci-nextcloud/scripts/scanfiles

10 lines
209 B
Plaintext
Raw Permalink Normal View History

#!/bin/bash
user=${1:---all}
echo scanning files for $user
read -p "continue? (y) : " ans
if [ $ans == "y" ]; then
docker exec -it -u 82 nextcloud-app ./occ files:scan $user
else
echo command aborted
fi