Skip to content

Commit

Permalink
updated install script
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrice committed Dec 5, 2016
1 parent 83f900d commit e5e4a3c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions web_only/install_autobed
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ if [ ! -d "./hrl_autobed_dev" ]
then
echo "[Autobed Install] Retrieving Autobed Software"
# git clone https://github.com/gt-ros-pkg/hrl_autobed_dev.git
wget https://github.com/gt-ros-pkg/hrl_autobed_dev/archive/v2.0.zip
unzip v2.0.zip
rm v2.0.zip
wget https://github.com/gt-ros-pkg/hrl_autobed_dev/archive/v2.1.zip
unzip v2.1.zip
rm v2.1.zip
else
echo "[Autobed Install] Autobed Software Found."
fi

# Add autobed_server to /etc/rc.local so that it starts on boot
AUTOBED_SERVER="/home/$USER/Autobed/hrl_autobed_dev-2.0/web_only/autobed_server.py"
AUTOBED_SERVER="/home/$USER/Autobed/hrl_autobed_dev-2.1/web_only/autobed_server.py"
if grep -q "$AUTOBED_SERVER" /etc/rc.local
then
echo "[Autobed Install] Autobed Server already set to start on boot"
Expand All @@ -44,7 +44,7 @@ else
fi

# Copy website config file into apache config directory
sudo sh -c "sed \"s/ABD-USER/$USER/g\" /home/$USER/Autobed/hrl_autobed_dev-2.0/web_only/autobed_site_config > /etc/apache2/sites-available/autobed"
sudo sh -c "sed \"s/ABD-USER/$USER/g\" /home/$USER/Autobed/hrl_autobed_dev-2.1/web_only/autobed_site_config > /etc/apache2/sites-available/autobed"
sudo a2ensite autobed #enable autobed web interface site in apache
sudo a2dissite default #disable existing default site in apache
sudo service apache2 reload #reload sites in apache to apply changes
Expand Down

0 comments on commit e5e4a3c

Please sign in to comment.