Skip to content
Browse files
feat: patch rpmspec to prompt for cookie value
  • Loading branch information
diannasoreil authored and nickva committed Apr 27, 2022
1 parent f4a3051 commit b0e71a904a9d6cc809a9ff989aaf94285f97e580
Showing 1 changed file with 6 additions and 0 deletions.
@@ -144,6 +144,12 @@ if ! /usr/bin/getent passwd couchdb > /dev/null; then /usr/sbin/adduser \
%{__ln_s} -f -T /var/log/%{name} %{buildroot}/opt/%{name}/var/log/%{name}

echo "Please enter a cookie value for this installation: " >/dev/tty
if exec </dev/tty; then
read cookie;
echo "Writing $cookie to vm.args..."
%{__sed} -i "s/^[# ]*-setcookie.*$/-setcookie ${cookie}/" /opt/%{name}/etc/vm.args
%{__chown} -R couchdb:couchdb /opt/%{name}
%{__chmod} a+x /opt/%{name}/bin/*
%if 0%{?fedora} || 0%{?rhel} >= 7

0 comments on commit b0e71a9

Please sign in to comment.