Spotter-VM/pandora/srv/pandora/update-url.sh

7 lines
164 B
Bash
Executable File

#!/bin/sh
HOST="${1}"
[ "${2}" != "443" ] && HOST="${1}:${2}"
sed -i "s|^ \"url\":.*| \"url\": \"pandora.${HOST}\"|" /srv/pandora/conf/config.jsonc