gitea-customizations/install.sh

17 lines
373 B
Bash
Raw Normal View History

2023-10-29 13:46:51 +01:00
#!/bin/bash
if [ "$GITEA_CUSTOM" == "" ]; then
GITEA_CUSTOM="/var/lib/gitea/custom"
fi
echo ""
echo "Customizations will be installed into $GITEA_CUSTOM"
echo "(define GITEA_CUSTOM env to change it)"
echo ""
read -p "Continue (y/N)?" confirm
case "$confirm" in
y|Y ) echo "yes";;
* ) exit 1;;
esac
mkdir -p "$GITEA_CUSTOM"
2023-10-29 13:49:30 +01:00
cp -r -v -f ./custom/* "$GITEA_CUSTOM/"