From 02811142215c1c4fafc683f2a8163caca56ecd6b Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Fri, 16 Feb 2018 13:34:13 +0100 Subject: [PATCH] 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 --- installing_deps.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installing_deps.sh b/installing_deps.sh index 6c70488d..17e9c54b 100755 --- a/installing_deps.sh +++ b/installing_deps.sh @@ -89,8 +89,9 @@ if [ -z "$VIRTUAL_ENV" ]; then fi year1=20`date +%y` +year2=20`date --date='-1 year' +%y` 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 -r pip_packages_requirement.txt