-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker: fix install script for non relative install
- Loading branch information
Showing
1 changed file
with
1 addition
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |