Commit a0cad6fb authored by Lukas Burgey's avatar Lukas Burgey

Change install / unistall scripts

parent 6998bd77
#!/bin/bash
config_dir=${config_dir-~/config}
logs_dir=${logs_dir-~/logs}
echo "Using config dir: $config_dir"
echo "Using logs dir: $logs"
mkdir -p ~/logs $config_dir
cp ./example-config/home/feudal/* $config_dir/
mkdir -p $logs_dir $config_dir
cp ./example-config/home/feudal/config/* $config_dir/
ln -s $config_dir/django_settings.py ./feudal/settings.py
echo
......@@ -14,7 +17,9 @@ echo
virtualenv -p /usr/bin/python3.5 ./env
source env/bin/activate
pip install Django django-cors-headers django-mysql django-polymorphic django-rest-polymorphic djangorestframework oic urllib3 mysqlclient pika
# TODO check dependencies
pip install Django django-cors-headers django-mysql django-polymorphic django-rest-polymorphic djangorestframework oic urllib3 mysqlclient pika ipython
echo "Starting database migration (is your database configured?)"
......
#!/bin/bash
config_dir=${config_dir-~/config}
repo=${repo-~/feudalBackend}
cd $repo
rm -rf feudal/settings.py env
for file in $(ls example-config/home/feudal/config);
do
rm $config_dir/$file
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment