All checks were successful
continuous-integration/drone/tag Build is passing
- includes plugins
18 lines
379 B
Bash
18 lines
379 B
Bash
fix-permissions() {
|
|
if [ "$(whoami)" != "root" ]; then
|
|
echo "error: you must be root to fix permissions"
|
|
echo "Try adding '--user root'"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Fixing permissions"
|
|
|
|
echo "Making karrot the owner of uploads"
|
|
chown -R karrot:karrot /app/uploads
|
|
|
|
echo "Making karrot the owner of plugins"
|
|
chown -R karrot:karrot /app/plugins
|
|
|
|
echo "Done"
|
|
}
|