Skip to content

Commit

Permalink
build: don't start example instance in postinstall
Browse files Browse the repository at this point in the history
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: Igor Munkin <imun@tarantool.org>
Reviewed-by: Alexander Turenko <alexander.turenko@tarantool.org>
  • Loading branch information
Olga Arkhangelskaia authored and Totktonada committed Jun 10, 2020
1 parent 67ac8df commit 080beba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
8 changes: 0 additions & 8 deletions debian/tarantool-common.postinst
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions extra/dist/tarantool-generator.in
Expand Up @@ -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

Expand Down

0 comments on commit 080beba

Please sign in to comment.