Skip to content
Snippets Groups Projects
Unverified Commit 080beba0 authored by Olga Arkhangelskaia's avatar Olga Arkhangelskaia Committed by Alexander Turenko
Browse files

build: don't start example instance in postinstall


After tarantool installation on Debian/Ubuntu from repo, example
instance was automatically started on 3301 port. At the same time
example instance on RHEL/CentOS is started manually. Patch does the same
for Debian/Ubuntu.

Closes #4507

Reviewed-by: default avatarIgor Munkin <imun@tarantool.org>
Reviewed-by: default avatarAlexander Turenko <alexander.turenko@tarantool.org>
parent 67ac8df8
No related branches found
No related tags found
No related merge requests found
......@@ -22,14 +22,6 @@ case "$1" in
install -d -o$SYSUSER -gadm -m2750 /var/log/tarantool
install -d -o$SYSUSER -g$SYSUSER -m750 /var/run/tarantool
install -d -o$SYSUSER -g$SYSUSER -m750 /var/lib/tarantool
# Enable example.lua by default
if [ -z $2 ] && [ ! -e /etc/tarantool/instances.enabled/example.lua ] &&
[ -d /etc/tarantool/instances.enabled ] &&
[ -d /etc/tarantool/instances.available/ ]; then
ln -s /etc/tarantool/instances.available/example.lua \
/etc/tarantool/instances.enabled/example.lua
fi
;;
esac
......
......@@ -13,6 +13,7 @@ mkdir -p "$wantdir"
for file in @TARANTOOL_ENABLEDDIR@/*.lua; do
instance=`basename $file .lua`
[ "${instance}" = "*" ] && break # skip empty directory
ln -s "$service" "$wantdir/tarantool@$instance.service"
done
......
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