Skip to content
Snippets Groups Projects
Commit 01100e3e authored by David Schmitz's avatar David Schmitz
Browse files

update install-centos.sh/install-debian.sh to not overwrite existing settings on reinstallation

parent 49acd708
No related branches found
No related tags found
No related merge requests found
...@@ -151,16 +151,21 @@ else ...@@ -151,16 +151,21 @@ else
cd "$fod_dir" cd "$fod_dir"
( (
cd flowspy cd flowspy
cp -f settings.py.dist settings.py
patch settings.py < settings.py.patch if [ ! -e settings.py ]; then
cp -f settings.py.dist settings.py
patch settings.py < settings.py.patch
sed -i "s#/srv/flowspy#$fod_dir#" "settings.py" sed -i "s#/srv/flowspy#$fod_dir#" "settings.py"
fi
) )
pip install 'setuptools<58' pip install 'setuptools<58'
pip install -r requirements.txt pip install -r requirements.txt
touch flowspy/settings_local.py if [ ! -e "flowspy/settings_local.py" ]; then
touch flowspy/settings_local.py
fi
#./manage.py syncdb --noinput #./manage.py syncdb --noinput
#mkdir -p /srv/flowspy/static/ #mkdir -p /srv/flowspy/static/
......
...@@ -158,14 +158,19 @@ else ...@@ -158,14 +158,19 @@ else
cd "$fod_dir" cd "$fod_dir"
( (
cd flowspy cd flowspy
cp -f settings.py.dist settings.py
patch settings.py < settings.py.patch if [ ! -e settings.py ]; then
cp -f settings.py.dist settings.py
patch settings.py < settings.py.patch
sed -i "s#/srv/flowspy#$fod_dir#" "settings.py" sed -i "s#/srv/flowspy#$fod_dir#" "settings.py"
fi
) )
pip install -r requirements.txt pip install -r requirements.txt
touch flowspy/settings_local.py if [ ! -e "flowspy/settings_local.py" ]; then
touch flowspy/settings_local.py
fi
#./manage.py syncdb --noinput #./manage.py syncdb --noinput
#mkdir -p /srv/flowspy/static/ #mkdir -p /srv/flowspy/static/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment