blob: 7f937bf73844d3d123a29b878f95ecaeec669c90 (
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
31
32
33
34
35
36
37
38
|
#!/bin/sh
set -ex
branding="$1"
server_path="$2"
web_path="$2/traccar-web"
function rebrand_assets {
echo "Rebranding public assets..."
if [ -d "${branding}/public" ]; then
cp -rf "${branding}/public" "${web_path}"
fi
}
function rebrand_resources {
echo "Rebranding app resources..."
if [ -d "${branding}/resources" ]; then
cp -rf "${branding}/resources" "${web_path}/src"
fi
}
function rebrand_templates {
echo "Rebranding app templates..."
if [ -d "${branding}/templates" ]; then
cp -rf "${branding}/templates" "${server_path}"
fi
}
function main {
rebrand_assets
rebrand_resources
rebrand_templates
}
main
|