aboutsummaryrefslogtreecommitdiff
path: root/util/revela-init
blob: 25e3ddcc7122e38c7cce1b2802a997632ffe32dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh

this="$(readlink -f $0)"
sharedir="$(dirname $this)"

printf "Enter your gallery name (e.g. \"Gallery\")> "
read name
printf "Enter base url (e.g. \"/photos\"; can be empty)> "
read burl

echo "title = \"$name\"
base_url = \"$burl\"

[images]
strip = no
quality = 80
max_width = 1200
max_height = 1200
smart_resize = yes

[thumbnails]
strip = yes
quality = 60
max_width = 200
max_height = 200
smart_resize = yes
blur = 50" > site.ini

cp -r "$sharedir"/assets/* .
mkdir content