mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-01-02 03:16:43 +00:00
parent
4506cd91eb
commit
89a44dcf6b
@ -1,13 +1,16 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Set config-file permissions
|
# Only execute on first install
|
||||||
chown -R chirpstack:chirpstack /etc/chirpstack
|
if [[ -z $2 ]]; then
|
||||||
chmod 750 /etc/chirpstack
|
# Set config-file permissions
|
||||||
chmod 640 /etc/chirpstack/*.toml
|
chown -R chirpstack:chirpstack /etc/chirpstack
|
||||||
|
chmod 750 /etc/chirpstack
|
||||||
|
chmod 640 /etc/chirpstack/*.toml
|
||||||
|
|
||||||
# Set environment variables to localhost
|
# Set environment variables to localhost
|
||||||
sed -i "s/\$MQTT_BROKER_HOST/localhost/" /etc/chirpstack/*.toml
|
sed -i "s/\$MQTT_BROKER_HOST/localhost/" /etc/chirpstack/*.toml
|
||||||
sed -i "s/\$POSTGRESQL_HOST/localhost/" /etc/chirpstack/*.toml
|
sed -i "s/\$POSTGRESQL_HOST/localhost/" /etc/chirpstack/*.toml
|
||||||
sed -i "s/\$REDIS_HOST/localhost/" /etc/chirpstack/*.toml
|
sed -i "s/\$REDIS_HOST/localhost/" /etc/chirpstack/*.toml
|
||||||
|
fi
|
||||||
|
|
||||||
#DEBHELPER#
|
#DEBHELPER#
|
||||||
|
Loading…
Reference in New Issue
Block a user