Skip to content
Snippets Groups Projects
Commit 48d5f2dc authored by bigbes's avatar bigbes
Browse files

Fix initscript for ubuntu/debian, again

parent 947a66ea
No related branches found
No related tags found
No related merge requests found
......@@ -30,13 +30,16 @@ fi
if [ -e "/etc/sysconfig/tarantool" ]; then
sysconfig_tarantool="/etc/sysconfig/tarantool"
elif [ -e "/etc/default/tarantool" ]; then
sysconfig_tarantool="/etc/sysconfig/tarantool"
sysconfig_tarantool="/etc/default/tarantool"
fi
CONF_DIR=`echo "dofile('$sysconfig_tarantool') print(instance_dir)" | tarantool`
if [ "$CONF_DIR" = "nil" ]; then
CONF_DIR="/etc/tarantool/instances.enabled"
if [ -n "$sysconfig_tarantool" ]; then
CONF_DIR=`echo "dofile('$sysconfig_tarantool') print(instance_dir)" | tarantool`
fi
if [ -z "$sysconfig_tarantool" || "$CONF_DIR" = "nil" ]; then
CONF_DIR="/etc/tarantool/instances.enabled"
fi
INSTANCES=`find $CONF_DIR -xtype f -name '*lua'`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment