Skip to content

Commit

Permalink
Docker: fix install script for non relative install
Browse files Browse the repository at this point in the history
  • Loading branch information
hpfmn committed Jun 25, 2017
1 parent d06b864 commit a06fc1d
Showing 1 changed file with 1 addition and 32 deletions.
33 changes: 1 addition & 32 deletions Docker/DockerInstall/install_openwifi.sh
Original file line number Diff line number Diff line change
@@ -1,35 +1,4 @@
#!/usr/bin/env bash

# install openwifi
#apt-get update
#apt-get -y install rabbitmq-server python3-pip git redis-server
#
#pip3 install virtualenv
#
#adduser \
# --system \
# --shell /bin/bash \
# --gecos 'User for managing of openwifi' \
# --group \
# --disabled-password \
# --home /home/openwifi \
# openwifi

#cp /DockerInstall/openwifi-jobserver-beat.conf /etc/init
#cp /DockerInstall/openwifi-jobserver.conf /etc/init

# deploy keys
mkdir /home/openwifi/.ssh
chmod 700 /home/openwifi/.ssh
cp -rv /DockerInstall/deploy_keys/* /home/openwifi/.ssh/
chown -R openwifi:openwifi /home/openwifi/.ssh
chmod 600 /home/openwifi/.ssh/*

# install openwifi as openwifi user
su openwifi -c "cd ~; git clone git@gitlab.inet.tu-berlin.de:OpenWiFi/Controller.git OpenWifi; cd OpenWifi; . ~/venv/bin/activate; python setup.py develop; initialize_openwifi_db development.ini"

#start openwifi
#start openwifi-jobserver
#start openwifi-jobserver-beat


su openwifi -c "cd ~; git clone git@github.com:berlin-open-wireless-lab/OpenWifiCore.git OpenWifi; cd OpenWifi; . ~/venv/bin/activate; python setup.py develop; initialize_openwifi_db development.ini"

0 comments on commit a06fc1d

Please sign in to comment.