add symlink to ejabberdctl
authorChris Sharp <csharp@georgialibraries.org>
Mon, 28 Jan 2019 00:20:33 +0000 (19:20 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 28 Jan 2019 00:20:33 +0000 (19:20 -0500)
src/extras/Makefile.install

index ef70784..b3c9daa 100644 (file)
@@ -36,8 +36,9 @@ APT_TOOL=apt-get -yq
 FEDORA_YUM_TOOL=dnf -y
 CENTOS_YUM_TOOL=yum -y
 RPM_TOOL=rpm
-EJABBERD_URL=https://www.process-one.net/downloads/downloads-action.php?file=/ejabberd/18.12.1/
-EJABBERD_RPM=ejabberd-18.12.1-0.x86_64.rpm
+EJABBERD_VERSION=18.12.1
+EJABBERD_URL=https://www.process-one.net/downloads/downloads-action.php?file=/ejabberd/$(EJABBERD_VERSION)/
+EJABBERD_RPM=ejabberd-$(EJABBERD_VERSION)-0.x86_64.rpm
 
 # Debian dependencies
 DEBS =  \
@@ -282,6 +283,7 @@ install_ejabberd:
        $(RPM_TOOL) -i /tmp/$(EJABBERD_RPM)
        systemctl enable ejabberd.service
        systemctl start ejabberd.service
+       ln -sf /opt/ejabberd-$(EJABBERD_VERSION)/bin/ejabberdctl /usr/local/sbin/ejabberdctl
 
 # Fedora/CentOS
 install_rpms_fedora: