1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#!/bin/sh set -ex branding="$1" server_path="$2" web_path="$2/traccar-web" function rebrand_assets { echo "Rebranding public assets..." cp -rf "shared/public" "${web_path}" cp -rf "${branding}/public" "${web_path}" } function main { rebrand_assets } main