Skip to content

Commit 25a4d9f

Browse files
committed
fix PHP enabling calls
1 parent 5761dd6 commit 25a4d9f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

debian/libretime.postinst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,12 @@ case "$1" in
5656
-e "s@WEB_PORT@80@g" \
5757
-e "s@WEB_ROOT@/var/www/libretime/airtime_mvc/public/@g" \
5858
/etc/apache2/sites-available/airtime.conf
59-
60-
if -f /usr/bin/php7.2 ; then
59+
if [[ -f /usr/bin/php7.2 ]]; then
6160
a2enmod rewrite php7.2
62-
else
61+
elif [[ -f /usr/bin/php7.0 ]]; then
6362
a2enmod rewrite php7.0
63+
else
64+
echo "Not enabling PHP, this needs doing manually"
6465
fi
6566
systemctl restart apache2
6667

@@ -84,14 +85,13 @@ EOF
8485
RESULT="$?"
8586
set -e
8687
# Only run these if the vhost doesn't exist
87-
if [ "$RESULT" != "0" ]; then
88+
if [[ "$RESULT" != "0" ]]; then
8889
rabbitmqctl add_vhost /airtime
8990
rabbitmqctl add_user airtime airtime
9091
fi
9192
rabbitmqctl set_permissions -p /airtime airtime .\* .\* .\*
9293

93-
pip3 install celery==3.1.26.post2
94-
pip3 install rgain3
94+
pip3 install rgain3==1.0.0
9595

9696
ip_device="enp0s8"
9797
IP=$(ifconfig ${ip_device} 2>/dev/null |awk -F'[ :]+' '/inet addr:/ {print $4}')
@@ -102,7 +102,7 @@ EOF
102102
echo " To get started with Airtime, visit ${IP} "
103103
echo " or, if you've set up your own web configuration, "
104104
echo " the Airtime webroot on your webserver "
105-
echo "-----------------------------------------------------"
105+
echo "-----------------------------------------------------"
106106
;;
107107

108108
abort-upgrade|abort-remove|abort-deconfigure)

0 commit comments

Comments
 (0)