fix: Create a directory for the last year (named as such) in LEVEL_DB_DATA/. This is done to prevent Duplicates.py to fail connecting to the database, as directories are created when starting install_dependencies.sh

This commit is contained in:
Sami Mokaddem 2018-02-16 13:34:13 +01:00
parent 32c8e101da
commit 0281114221

View file

@ -89,8 +89,9 @@ if [ -z "$VIRTUAL_ENV" ]; then
fi fi
year1=20`date +%y` year1=20`date +%y`
year2=20`date --date='-1 year' +%y`
mkdir -p $AIL_HOME/{PASTES,Blooms,dumps} mkdir -p $AIL_HOME/{PASTES,Blooms,dumps}
mkdir -p $AIL_HOME/LEVEL_DB_DATA/$year1 mkdir -p $AIL_HOME/LEVEL_DB_DATA/{$year1,$year2}
pip install -U pip pip install -U pip
pip install -U -r pip_packages_requirement.txt pip install -U -r pip_packages_requirement.txt