mirror of
https://github.com/YunoHost-Apps/movim_ynh.git
synced 2024-09-03 19:46:19 +02:00
fix
This commit is contained in:
parent
9305e40aa9
commit
f9d1bfccbd
3 changed files with 9 additions and 9 deletions
|
@ -139,10 +139,10 @@ ynh_store_file_checksum --file="$final_path/config/db.inc.php"
|
||||||
# Install PHP dependencies using composer
|
# Install PHP dependencies using composer
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
pushd "$final_path"
|
pushd $final_path
|
||||||
export COMPOSER_HOME=$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" \
|
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
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -168,9 +168,9 @@ cache_dir="/home/$app"
|
||||||
mkdir -p $cache_dir
|
mkdir -p $cache_dir
|
||||||
chown -R $app $cache_dir
|
chown -R $app $cache_dir
|
||||||
|
|
||||||
pushd "$final_path"
|
pushd $final_path
|
||||||
ynh_exec_as $app php$phpversion composer.phar $app:migrate
|
ynh_exec_as $app php$phpversion composer.phar $app:migrate --quiet
|
||||||
ynh_exec_as $app php$phpversion daemon.php config --username=$admin --password=$password
|
ynh_exec_as $app php$phpversion daemon.php config --username=$admin --password=$password --quiet
|
||||||
popd
|
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
|
ynh_script_progression --message="Starting a systemd service..." --weight=2
|
||||||
|
|
||||||
# Start a systemd service
|
# 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
|
# SETUP SSOWAT
|
||||||
|
|
|
@ -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_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
|
# GENERIC FINALIZATION
|
||||||
|
|
|
@ -156,8 +156,8 @@ popd
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configuring database.." --weight=1
|
ynh_script_progression --message="Configuring database.." --weight=1
|
||||||
|
|
||||||
pushd "$final_path"
|
pushd $final_path
|
||||||
ynh_exec_as $app php$phpversion composer.phar movim:migrate
|
ynh_exec_as $app php$phpversion composer.phar movim:migrate --quiet
|
||||||
popd
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue