Skip to content
Permalink
Browse files

Fix nems-tv rollout

  • Loading branch information...
NEMS Linux
NEMS Linux committed Jul 25, 2019
1 parent a1c9874 commit 51fa31df0e5c8a7411fcf7f7dfcc97b383ef649e
Showing with 9 additions and 2 deletions.
  1. +9 −2 fixes.sh
@@ -39,6 +39,13 @@
while fuser /var/{lib/{dpkg,apt/lists},cache/apt/archives}/lock >/dev/null 2>&1; do sleep 1; done
echo "Done."

# Make sure /bin/systemctl resolves
if [[ ! -e /bin/systemctl ]]; then
if [[ -e /usr/bin/systemctl ]]; then
ln -s /usr/bin/systemctl /bin/systemctl
fi
fi

# Update apt here so we don't have to do it below
apt clean
apt update --allow-releaseinfo-change
@@ -317,9 +324,9 @@ if (( $(awk 'BEGIN {print ("'$ver'" >= "'1.5'")}') )); then
cd /var/www/html
git pull
# Enable nems-tv
a2enconf nems-tv
/usr/sbin/a2enconf nems-tv
# Reload apache2
/usr/bin/systemctl reload apache2
/bin/systemctl reload apache2
fi
fi

0 comments on commit 51fa31d

Please sign in to comment.
You can’t perform that action at this time.