rm /etc/nginx/sites-enabled/default
# Prepare user.
-adduser --system --shell /bin/false --home /opt/pleroma pleroma
+adduser --system --group --shell /bin/false --home /opt/pleroma pleroma
# TODO: integrate this into apt-mark/pleroma
-apt -y install elixir erlang-dev erlang-tools erlang-parsetools erlang-eldap erlang-ssh erlang-xmerl build-essential
+apt -y install build-essential #elixir erlang-dev erlang-tools erlang-parsetools erlang-eldap erlang-ssh erlang-xmerl build-essential
+# Not listed by doc.
+apt -y install wget #erlang-inets erlnag-erlware-commons
+
+wget -P /tmp/ https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
+dpkg -i /tmp/erlang-solutions_1.0_all.deb
+apt update
+apt -y install elixir erlang-dev erlang-tools erlang-parsetools erlang-eldap erlang-ssh erlang-xmerl
mkdir -p /opt/pleroma
chown -R pleroma:pleroma /opt/pleroma
su pleroma -s $SHELL -lc 'git clone -b develop https://git.pleroma.social/pleroma/pleroma /opt/pleroma'
+su pleroma -s $SHELL -lc 'mix local.hex --force'
+su pleroma -s $SHELL -lc 'mix local.rebar --force'
su pleroma -s $SHELL -lc 'mix deps.get'
su pleroma -s $SHELL -lc "mix pleroma.instance gen \
-'--output /etc/pleroma/config.exs \
+--output /etc/pleroma/config.exs \
--output-psql /tmp/setup_db.psql \
--domain ${domain} \
--instance-name plom-roma \