1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/movim_ynh.git synced 2024-09-03 19:46:19 +02:00
This commit is contained in:
ericgaspar 2021-01-15 11:33:11 +01:00
parent 9305e40aa9
commit f9d1bfccbd
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 9 additions and 9 deletions

View file

@ -139,10 +139,10 @@ ynh_store_file_checksum --file="$final_path/config/db.inc.php"
# Install PHP dependencies using composer
#=================================================
pushd "$final_path"
pushd $final_path
export COMPOSER_HOME=$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 install --no-interaction
&& php${phpversion} composer.phar install --no-interaction --quiet
popd
#=================================================
@ -168,9 +168,9 @@ cache_dir="/home/$app"
mkdir -p $cache_dir
chown -R $app $cache_dir
pushd "$final_path"
ynh_exec_as $app php$phpversion composer.phar $app:migrate
ynh_exec_as $app php$phpversion daemon.php config --username=$admin --password=$password
pushd $final_path
ynh_exec_as $app php$phpversion composer.phar $app:migrate --quiet
ynh_exec_as $app php$phpversion daemon.php config --username=$admin --password=$password --quiet
popd
#=================================================
@ -195,7 +195,7 @@ yunohost service add $app --description="Responsive web-based XMPP client" --log
ynh_script_progression --message="Starting a systemd service..." --weight=2
# Start a systemd service
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" #--line_match="HTTP Server listening"
ynh_systemd_action --service_name=$app --action=start --log_path="systemd" #--line_match="HTTP Server listening"
#=================================================
# SETUP SSOWAT

View file

@ -121,7 +121,7 @@ yunohost service add $app --description="Responsive web-based XMPP client" --log
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=2
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
ynh_systemd_action --service_name=$app --action=start --log_path="/var/log/$app/$app.log"
#=================================================
# GENERIC FINALIZATION

View file

@ -156,8 +156,8 @@ popd
#=================================================
ynh_script_progression --message="Configuring database.." --weight=1
pushd "$final_path"
ynh_exec_as $app php$phpversion composer.phar movim:migrate
pushd $final_path
ynh_exec_as $app php$phpversion composer.phar movim:migrate --quiet
popd
#=================================================