mirror of
https://github.com/YunoHost-Apps/mailman3_ynh.git
synced 2024-09-03 19:36:17 +02:00
Run the migrations as well
This commit is contained in:
parent
413475ee7b
commit
36f8fb5b10
1 changed files with 8 additions and 0 deletions
|
@ -167,6 +167,14 @@ ynh_replace_string --match_string="__DB_NAME__" --replace_string="$app_web" --ta
|
||||||
ynh_replace_string --match_string="__DB_USER__" --replace_string="$app_web" --target_file="/etc/mailman3/mailman-web.py"
|
ynh_replace_string --match_string="__DB_USER__" --replace_string="$app_web" --target_file="/etc/mailman3/mailman-web.py"
|
||||||
ynh_replace_string --match_string="__DB_PWD__" --replace_string="$db_pwd_app_web" --target_file="/etc/mailman3/mailman-web.py"
|
ynh_replace_string --match_string="__DB_PWD__" --replace_string="$db_pwd_app_web" --target_file="/etc/mailman3/mailman-web.py"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# RUN DATABASE MIGRATIONS
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
ynh_script_progression --message="Running database migrations..." --weight=6
|
||||||
|
|
||||||
|
cd /usr/share/mailman3-web && python3 manage.py migrate || ynh_die --message="Mailman3 migrations failed!"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STORE THE CONFIG FILE CHECKSUM
|
# STORE THE CONFIG FILE CHECKSUM
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue