mirror of
https://github.com/YunoHost-Apps/fittrackee_ynh.git
synced 2024-09-03 18:36:16 +02:00
Fix
This commit is contained in:
parent
6400b9a3e5
commit
3422afb7da
4 changed files with 13 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
||||||
# SECURITY WARNING: keep the secret key used in production secret!
|
# SECURITY WARNING: keep the secret key used in production secret!
|
||||||
SECRET_KEY="__KEY__"
|
SECRET_KEY="__KEY__"
|
||||||
|
|
||||||
# SECURITY WARNING: don 't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG=false
|
DEBUG=false
|
||||||
USE_HTTPS=true
|
USE_HTTPS=true
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,6 @@ key=$(ynh_string_random --length=32)
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Validating installation parameters..." --weight=1
|
ynh_script_progression --message="Validating installation parameters..." --weight=1
|
||||||
|
|
||||||
|
|
||||||
final_path=/var/www/$app
|
final_path=/var/www/$app
|
||||||
test ! -e "$final_path" || ynh_die --message="This path already contains a folder"
|
test ! -e "$final_path" || ynh_die --message="This path already contains a folder"
|
||||||
|
|
||||||
|
|
|
@ -99,6 +99,12 @@ mkdir "$final_path/venv"
|
||||||
python3 -m venv "$final_path/venv"
|
python3 -m venv "$final_path/venv"
|
||||||
$final_path/venv/bin/pip3 install -r "$final_path/requirements.txt"
|
$final_path/venv/bin/pip3 install -r "$final_path/requirements.txt"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# SET PERMISSIONS ON BOOKWYRM DIRECTORY
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
chown -R $app:www-data $final_path
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue