Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: standalone setup #232

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
Open
1 change: 1 addition & 0 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -201,5 +201,6 @@ Mise à jour de l'application
cd usershub
source venv/bin/activate
flask db upgrade usershub@head
flask db upgrade utilisateurs@head

* Suivre les éventuelles notes de version spécifiques à chaque version
7 changes: 4 additions & 3 deletions install_db.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env bash
# Make sure root cannot run our script
if [ "$(id -u)" == "0" ]; then
echo "This script must NOT be run as root" 1>&2
exit 1
echo "This script must NOT be run as root" 1>&2
exit 1
fi

. config/settings.ini
Expand All @@ -24,7 +24,7 @@ function database_exists () {
if database_exists $db_name
then
if $drop_apps_db
then
then
echo "Suppression de la base..."
sudo -n -u postgres -s dropdb $db_name
else
Expand All @@ -44,4 +44,5 @@ fi

source venv/bin/activate
flask db upgrade usershub@head
flask db upgrade utilisateurs@head
deactivate
Loading