mirror of
https://github.com/YunoHost-Apps/movim_ynh.git
synced 2024-09-03 19:46:19 +02:00
Update upgrade
This commit is contained in:
parent
1712fbd2ad
commit
bfe4f0c052
1 changed files with 2 additions and 7 deletions
|
@ -157,20 +157,15 @@ ynh_script_progression --message="Installing Composer..." --weight=1
|
||||||
pushd "$final_path"
|
pushd "$final_path"
|
||||||
ynh_exec_warn_less curl -sS https://getcomposer.org/installer | php$phpversion -- --version="1.10.16" --install-dir="$final_path" \
|
ynh_exec_warn_less curl -sS https://getcomposer.org/installer | php$phpversion -- --version="1.10.16" --install-dir="$final_path" \
|
||||||
&& php$phpversion composer.phar config --global discard-changes true --quiet \
|
&& php$phpversion composer.phar config --global discard-changes true --quiet \
|
||||||
|
&& php$phpversion composer.phar update --no-interaction --quiet \
|
||||||
&& php$phpversion composer.phar install --no-interaction --quiet \
|
&& php$phpversion composer.phar install --no-interaction --quiet \
|
||||||
&& php$phpversion composer.phar movim:migrate --quiet
|
&& php$phpversion composer.phar movim:migrate --quiet
|
||||||
popd
|
popd
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# Set-up database
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Configuring database.." --weight=1
|
|
||||||
|
|
||||||
ynh_composer_exec --phpversion="$phpversion" --workdir="$final_path" --commands="movim:migrate"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SYSTEMD
|
# SETUP SYSTEMD
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_script_progression --message="Upgrading systemd configuration..." --weight=5
|
||||||
|
|
||||||
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file=../conf/systemd.service
|
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file=../conf/systemd.service
|
||||||
ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file=../conf/systemd.service
|
ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file=../conf/systemd.service
|
||||||
|
|
Loading…
Add table
Reference in a new issue