add odyssey defaults to init

This commit is contained in:
Evgeniy Efimkin 2018-04-02 16:16:22 +03:00
parent 7709b2546c
commit 6e60b71621
1 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,12 @@ BINFILE="@DEST_BIN_PATH@"
CONFFILE="@DEST_CONFIG_PATH@"
CMD="start-stop-daemon --verbose --pidfile $PIDFILE"
# Include odyssey defaults if available
if [ -f /etc/default/odyssey ] ; then
. /etc/default/odyssey
fi
create_dir() {
if [ ! -d $1 ]; then
mkdir -p $1