mirror of
https://github.com/YunoHost-Apps/movim_ynh.git
synced 2024-09-03 19:46:19 +02:00
fix#11 (upgrade db, quiet composer upgrade)
This commit is contained in:
parent
d7dde372f2
commit
02d57eb3ce
2 changed files with 7 additions and 2 deletions
|
@ -80,7 +80,8 @@ sudo chmod -R 750 $final_path
|
|||
|
||||
# Install PHP dependencies
|
||||
sudo su -c "curl -sS https://getcomposer.org/installer | php -- --install-dir=$final_path" movim
|
||||
sudo su -c "cd $final_path && php composer.phar install" movim
|
||||
sudo su -c "cd $final_path && php composer.phar config --global discard-changes true" movim # auto yes
|
||||
sudo su -c "cd $final_path && php composer.phar install -n" movim # install + quiet mode
|
||||
|
||||
# Movim configuration
|
||||
sudo sed -i "s@'username' => 'username'@'username' => '$db_user'@g" $final_path/config/db.inc.php
|
||||
|
|
|
@ -30,11 +30,15 @@ else
|
|||
fi
|
||||
|
||||
# Update PHP dependencies
|
||||
sudo su -c "cd $final_path && php composer.phar update" movim
|
||||
sudo su -c "cd $final_path && php composer.phar config --global discard-changes true" movim # auto y
|
||||
sudo su -c "cd $final_path && php composer.phar update -n" movim # upgrade + quiet
|
||||
|
||||
# Movim configuration
|
||||
sudo sed -i "s@/ws/@$path/ws/@g" $final_path/app/assets/js/movim_websocket.js
|
||||
|
||||
# Upgrade db if necessary
|
||||
sudo su -c "cd $final_path && php mud.php db set" movim
|
||||
|
||||
# Update xmppwhitelist if private
|
||||
if [ $public_site = "No" ];
|
||||
then
|
||||
|
|
Loading…
Add table
Reference in a new issue