mirror of
https://github.com/YunoHost-Apps/paperless-ngx_ynh.git
synced 2024-09-03 19:56:33 +02:00
v2
This commit is contained in:
parent
8a75311ae1
commit
5463eac9f8
3 changed files with 9 additions and 5 deletions
|
@ -5,7 +5,7 @@ name = "Paperless-ngx"
|
|||
description.en = "Scan, index and archive all your physical documents"
|
||||
description.fr = "Scannez, triez et archivez tous vos documents papiers"
|
||||
|
||||
version = "1.14.5~ynh1"
|
||||
version = "1.14.5~ynh2"
|
||||
|
||||
maintainers = ["Tagada"]
|
||||
|
||||
|
|
|
@ -76,9 +76,6 @@ ynh_redis_remove_db "$redis_db"
|
|||
#=================================================
|
||||
ynh_script_progression --message="Removing various files..." --weight=1
|
||||
|
||||
# Remove temp directory securely
|
||||
ynh_secure_remove --file="/tmp/$app"
|
||||
|
||||
# Remove the log files
|
||||
ynh_secure_remove --file="/var/log/$app"
|
||||
|
||||
|
|
|
@ -38,6 +38,13 @@ if [ -z "$ocr_language" ]; then
|
|||
ynh_app_setting_set --app=$app --key=ocr_language --value=$ocr_language
|
||||
fi
|
||||
|
||||
if ynh_compare_current_package_version -c le -v "1.14.5~ynh1"
|
||||
then
|
||||
# When upgrading from older version when install_dir was in /var/www,
|
||||
# we need to rebuild the venv entierly
|
||||
ynh_secure_remove --file="$install_dir/venv"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
|
@ -66,7 +73,7 @@ ynh_add_nginx_config
|
|||
#=================================================
|
||||
# INSTALL PYTHON DEPENDENCIES
|
||||
#=================================================
|
||||
#REMOVEME? ynh_script_progression --message="Installing Python dependencies..."
|
||||
ynh_script_progression --message="Installing Python dependencies..."
|
||||
|
||||
pushd $install_dir
|
||||
python3 -m venv venv
|
||||
|
|
Loading…
Add table
Reference in a new issue