mirror of
https://github.com/YunoHost-Apps/weblate_ynh.git
synced 2024-10-01 13:35:04 +02:00
some cleaning
This commit is contained in:
parent
ef06c66dc9
commit
c1aa604144
4 changed files with 5 additions and 2 deletions
|
@ -154,6 +154,7 @@ USE_TZ = True
|
|||
DEFAULT_AUTO_FIELD = "django.db.models.AutoField"
|
||||
|
||||
# URL prefix to use, please see documentation for more details
|
||||
# WARNING: this must be without trailing slash (this is why we set __PATH2__ (cf. loaded settings in install and upgrade))
|
||||
URL_PREFIX = "__PATH2__"
|
||||
|
||||
# Absolute filesystem path to the directory that will hold user-uploaded files.
|
||||
|
|
|
@ -93,7 +93,7 @@ ram.runtime = "3G"
|
|||
main.default = 8080
|
||||
|
||||
[resources.apt]
|
||||
#first § = weblate dependecies, second § = borgbackup dependencies
|
||||
#first = weblate dependecies, after hub = borgbackup dependencies
|
||||
packages = "libxml2-dev, libxslt-dev, libfreetype6-dev, libjpeg-dev, libz-dev, libyaml-dev, libffi-dev, libcairo-dev, gir1.2-pango-1.0, libgirepository1.0-dev, libacl1-dev, libssl-dev, libpq-dev, libjpeg62-turbo-dev, build-essential, python3-gdbm, python3-dev, python3-pip, python3-venv, python3-virtualenv, virtualenv, git, uwsgi, uwsgi-plugin-python3, redis-server, postgresql, postgresql-contrib, hub, libacl1-dev, libacl1, libssl-dev, liblz4-dev, libzstd-dev, libxxhash-dev, build-essential, pkg-config, python3-pkgconfig"
|
||||
|
||||
[resources.database]
|
||||
|
|
|
@ -124,7 +124,6 @@ ynh_script_progression --message="Adding a configuration file..." --weight=1
|
|||
|
||||
redis_db=$(ynh_redis_get_free_db)
|
||||
ynh_app_setting_set --app=$app --key=redis_db --value="$redis_db"
|
||||
#path="${path%/}"
|
||||
settings="$install_dir/venv/lib/$weblate_pypath/site-packages/weblate/settings.py"
|
||||
|
||||
set_forge_variables
|
||||
|
|
|
@ -17,6 +17,9 @@ ynh_script_progression --message="Loading installation settings..." --weight=1
|
|||
admin_mail=$(ynh_user_get_info --username="$admin" --key=mail)
|
||||
key=$(ynh_string_random --length=50)
|
||||
|
||||
# Remove trailing "/" for next commands
|
||||
path2=${path%/}
|
||||
|
||||
#=================================================
|
||||
# CHECK VERSION
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue