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
4a26690a51
commit
bd29a3b8eb
1 changed files with 15 additions and 6 deletions
|
@ -21,9 +21,9 @@ path_url=$(ynh_app_setting_get --app=$app --key=path)
|
|||
language=$(ynh_app_setting_get --app=$app --key=language)
|
||||
admin=$(ynh_app_setting_get --app=$app --key=admin)
|
||||
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
||||
db_user=$(ynh_app_setting_get --app=$app --key=db_user)
|
||||
db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd)
|
||||
#db_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
||||
#db_user=$(ynh_app_setting_get --app=$app --key=db_user)
|
||||
#db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd)
|
||||
port=$(ynh_app_setting_get --app=$app --key=port)
|
||||
datadir=$(ynh_app_setting_get --app=$app --key=datadir)
|
||||
|
||||
|
@ -89,9 +89,9 @@ chown -R $app:www-data "$final_path"
|
|||
#=================================================
|
||||
ynh_script_progression --message="Installing service script..." --weight=1
|
||||
|
||||
ynh_add_config --template="../conf/.env.production" --destination="$final_path/.env"
|
||||
chmod 600 $final_path/.env
|
||||
chown $app:www-data "$final_path/.env"
|
||||
#ynh_add_config --template="../conf/.env.production" --destination="$final_path/.env"
|
||||
#chmod 600 $final_path/.env
|
||||
#chown $app:www-data "$final_path/.env"
|
||||
|
||||
set -a; source "$final_path/.env"; set +a
|
||||
|
||||
|
@ -100,6 +100,15 @@ mkdir "$final_path/venv"
|
|||
python3 -m venv "$final_path/venv"
|
||||
$final_path/venv/bin/pip3 install -r "$final_path/requirements.txt"
|
||||
|
||||
#=================================================
|
||||
# INITIALIZE DATABASE
|
||||
#=================================================
|
||||
ynh_script_progression --message="Initializing database..." --weight=1
|
||||
|
||||
$final_path/venv/bin/python3 "$final_path/manage.py" migrate
|
||||
$final_path/venv/bin/python3 "$final_path/manage.py" compile_themes
|
||||
$final_path/venv/bin/python3 "$final_path/manage.py" collectstatic --no-input
|
||||
$final_path/venv/bin/python3 "$final_path/manage.py" populate_streams
|
||||
|
||||
#=================================================
|
||||
# SET PERMISSIONS ON BOOKWYRM DIRECTORY
|
||||
|
|
Loading…
Reference in a new issue