mirror of
https://github.com/YunoHost-Apps/scovie_ynh.git
synced 2024-09-03 20:16:29 +02:00
update upgrade
This commit is contained in:
parent
21e972797f
commit
b9df988fab
1 changed files with 11 additions and 11 deletions
|
@ -76,20 +76,20 @@ ynh_add_config --template="wsgi.py" --destination="$install_dir/wsgi.py"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="migrate/collectstatic/createadmin..." --weight=10
|
ynh_script_progression --message="migrate/collectstatic/createadmin..." --weight=10
|
||||||
|
|
||||||
cd "$install_dir" || exit
|
pushd "$install_dir"
|
||||||
|
# Just for debugging:
|
||||||
|
ynh_exec_as "$app" "$venvpython" ./manage.py diffsettings
|
||||||
|
|
||||||
# Just for debugging:
|
ynh_exec_as "$app" "$venvpython" ./manage.py migrate --no-input
|
||||||
./manage.py diffsettings
|
ynh_exec_as "$app" "$venvpython" ./manage.py collectstatic --no-input
|
||||||
|
|
||||||
./manage.py migrate --no-input
|
# Create/update Django superuser (set unusable password, because auth done via SSOwat):
|
||||||
./manage.py collectstatic --no-input
|
ynh_exec_as "$app" "$venvpython" ./manage.py create_superuser --username="$admin" --email="$(ynh_user_get_info "$admin" mail)"
|
||||||
|
|
||||||
# Create/update Django superuser (set unusable password, because auth done via SSOwat):
|
# Check the configuration
|
||||||
./manage.py create_superuser --username="$admin" --email="$(ynh_user_get_info "$admin" mail)"
|
# This may fail in some cases with errors, etc., but the app works and the user can fix issues later.
|
||||||
|
ynh_exec_as "$app" "$venvpython" ./manage.py check --deploy || true
|
||||||
# Check the configuration
|
popd
|
||||||
# This may fail in some cases with errors, etc., but the app works and the user can fix issues later.
|
|
||||||
./manage.py check --deploy || true
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REAPPLY SYSTEM CONFIGURATIONS
|
# REAPPLY SYSTEM CONFIGURATIONS
|
||||||
|
|
Loading…
Reference in a new issue