Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 22 lines (16 sloc) 375 Bytes
#!/bin/bash
OPTIONS_DIR="$SNAP_DATA/options"
port="$(snapctl get port)"
address="$(snapctl get address)"
if [ -z "$port" ]; then
echo "Using default port of 5053"
port=5053
fi
if [ -z "$address" ]; then
echo "Using default address of 127.0.0.1"
address=127.0.0.1
fi
mkdir $OPTIONS_DIR
echo $address > $OPTIONS_DIR/ipaddress
echo $port > $OPTIONS_DIR/port
exit 0
You can’t perform that action at this time.