Select Git revision

David Beniamine authored
pico 592 B
#!/bin/bash
usage() {
echo "Usage $0 [command]"
echo "Commands"
echo -e "\tcache clear the HTML cache"
echo -e "\tperms fix permissions"
echo -e "\thelp display this message and exit"
}
docker="docker-compose exec pico"
case $1 in
"cache")
$docker rm -rf content/cache/html/*
$docker rm -rf content/cache/twig/*
;;
"perms")
$docker chown -R $(id -u):33 content/
$docker chmod -R g+w content/cache
;;
"help")
usage
;;
*)
echo "Unknown command '$1'"
usage
exit 1
esac