2020-12-11 14:23:08 -05:00
|
|
|
#!/usr/bin/env bash
|
2020-12-15 10:27:53 -05:00
|
|
|
set -x
|
2020-12-11 14:23:08 -05:00
|
|
|
|
2021-01-12 16:17:11 -05:00
|
|
|
if [ ! -z "${APRSD_PLUGINS}" ]; then
|
2020-12-15 10:27:53 -05:00
|
|
|
OLDIFS=$IFS
|
|
|
|
IFS=','
|
2021-01-12 16:17:11 -05:00
|
|
|
echo "Installing pypi plugins '$APRSD_PLUGINS'";
|
|
|
|
for plugin in ${APRSD_PLUGINS}; do
|
2020-12-15 10:27:53 -05:00
|
|
|
IFS=$OLDIFS
|
|
|
|
# call your procedure/other scripts here below
|
|
|
|
echo "Installing '$plugin'"
|
|
|
|
pip3 install $plugin
|
|
|
|
done
|
|
|
|
fi
|
2020-12-11 14:23:08 -05:00
|
|
|
|
|
|
|
# check to see if there is a config file
|
|
|
|
APRSD_CONFIG="/config/aprsd.yml"
|
|
|
|
if [ ! -e "$APRSD_CONFIG" ]; then
|
|
|
|
echo "'$APRSD_CONFIG' File does not exist. Creating."
|
|
|
|
aprsd sample-config > $APRSD_CONFIG
|
|
|
|
fi
|
2021-02-16 10:05:11 -05:00
|
|
|
|
|
|
|
/usr/local/bin/aprsd server -c $APRSD_CONFIG --loglevel DEBUG
|