aboutsummaryrefslogtreecommitdiff
path: root/share/templater/agpl/setup
blob: 216722b5e13069da70b15dee10b83ec8e46c17a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
#
# AGPLv3 templater module.
#

# Parameters
SHARE="$1"

# Include basic functions
source $SHARE/templater/functions || exit 1

# AGPLv3 License
function templater_agpl {
  if [ ! -e "LICENSE" ]; then
    __templater_echo "Setting up Affero GPLv3 License..."
    cp $SHARE/agpl/files/LICENSE .
  else
    __templater_echo "LICENSE already set"
  fi
}

# Dispatch
templater_agpl