Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
executable file 21 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