mirror of
https://github.com/YunoHost-Apps/mailman3_ynh.git
synced 2024-09-03 19:36:17 +02:00
Merge pull request #8 from YunoHost-Apps/also-run-migrate
Run the migrations as well
This commit is contained in:
commit
8c96968585
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…
Reference in a new issue