Files
caprover/dev-scripts/dev-clean-run-as-dev-macos-step-1.sh
2022-12-15 11:57:09 +01:00

12 lines
279 B
Bash
Executable File

#!/bin/sh
if ! [ $(id -u) = 0 ]; then
echo "Must run as sudo or root"
exit 1
fi
# on macos Catalina and above, /captain is a symb link. we cannot remove the folder so we delete all files inside
# rm -rf /captain && mkdir /captain
rm -rf /captain/*
chmod -R 777 /captain/