Skip to content
Permalink
Browse files

Finalize nems-tv

  • Loading branch information...
NEMS Linux
NEMS Linux committed Jul 25, 2019
1 parent 17678b3 commit 54d122d834624d598c8bb4ea2ecc019f060e9360
Showing with 35 additions and 0 deletions.
  1. +27 −0 build/145-nems-tv
  2. +8 −0 nems-push.sh
@@ -0,0 +1,27 @@
#!/bin/bash
echo $0 > /var/www/html/userfiles/nems-build.cur

if [[ ! -d /var/www/nems-tv ]]; then
echo 'Installing NEMS TV Dashboard...'
cd /var/www
# Obtain nems-tv
git clone https://github.com/Cat5TV/nems-tv
# If the clone was successful, enable nems-tv
if [[ -d /var/www/nems-tv ]]; then
# Add the apache2 conf
cp -f /var/www/nems-tv/nems-tv.conf /etc/apache2/conf-available/
# Set permissions
chown -R www-data:www-data /var/www/nems-tv
chown root:root /etc/apache2/conf-available/nems-tv.conf
# Update nems-www to remove the /tv folder
cd /var/www/html
git pull
# Enable nems-tv
a2enconf nems-tv
# Reload apache2
/usr/bin/systemctl reload apache2
echo 'Done installing NEMS TV Dashboard'
else
echo 'Failed installing NEMS TV Dashboard'
fi
fi
@@ -33,6 +33,14 @@ git commit -am "$comment"
#git push origin master
git push "https://Cat5TV:$password@github.com/Cat5TV/nems-www.git"

cd /var/www/nems-tv/
echo ""
pwd
git pull
git add *
git commit -am "$comment"
git push "https://Cat5TV:$password@github.com/Cat5TV/nems-tv.git"

cd /root/nems/nems-migrator/
echo ""
pwd

0 comments on commit 54d122d

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