1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/movim_ynh.git synced 2024-09-03 19:46:19 +02:00
* Fix linter warning
This commit is contained in:
Éric Gaspar 2020-12-02 12:56:47 +01:00 committed by GitHub
parent 29fa31f6fd
commit 1075b6c7ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 19 deletions

View file

@ -25,8 +25,6 @@
incorrect_path=1 incorrect_path=1
port_already_use=1 port_already_use=1
change_url=0 change_url=0
;;; Levels
Level 5=auto
;;; Options ;;; Options
Email= Email=
Notification=none Notification=none

View file

@ -6,7 +6,7 @@
"en": "Web-based cross-platform XMPP client", "en": "Web-based cross-platform XMPP client",
"fr": "Client XMPP multiplateforme basé sur le Web" "fr": "Client XMPP multiplateforme basé sur le Web"
}, },
"version": "0.18~ynh3", "version": "0.18~ynh4",
"url": "https://movim.eu", "url": "https://movim.eu",
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"maintainer": { "maintainer": {

View file

@ -49,7 +49,6 @@ ynh_backup --src_path="$final_path"
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#================================================= #=================================================
# BACKUP THE PHP-FPM CONFIGURATION # BACKUP THE PHP-FPM CONFIGURATION
#================================================= #=================================================

View file

@ -169,8 +169,8 @@ mkdir -p $cache_dir
chown -R $app $cache_dir chown -R $app $cache_dir
cd "$final_path" cd "$final_path"
ynh_exec_as $app php"${phpversion}" composer.phar $app:migrate ynh_exec_as $app php$phpversion composer.phar $app:migrate
php"${phpversion}" daemon.php config --username=$admin --password=$password ynh_exec_as $app php$phpversion daemon.php config --username=$admin --password=$password
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION

View file

@ -107,13 +107,13 @@ ynh_psql_execute_file_as_root --file="./db.sql" --database=$db_name
ynh_script_progression --message="Restoring the systemd configuration..." --weight=4 ynh_script_progression --message="Restoring the systemd configuration..." --weight=4
ynh_restore_file --origin_path="/etc/systemd/system/$app.service" ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
systemctl enable $app.service systemctl enable $app.service --quiet
#================================================= #=================================================
# INTEGRATE SERVICE IN YUNOHOST # INTEGRATE SERVICE IN YUNOHOST
#================================================= #=================================================
yunohost service add $app --description "Responsive web-based XMPP client" --log "/var/log/$app/$app.log" yunohost service add $app --description "Responsive web-based XMPP client" --log="/var/log/$app/$app.log"
#================================================= #=================================================
# START SYSTEMD SERVICE # START SYSTEMD SERVICE

View file

@ -73,13 +73,6 @@ ynh_clean_setup () {
# Exit if an error occurs during the execution of the script # Exit if an error occurs during the execution of the script
ynh_abort_if_errors ynh_abort_if_errors
#=================================================
# CHECK THE PATH
#=================================================
# Normalize the URL path syntax
path_url=$(ynh_normalize_url_path $path_url)
#================================================= #=================================================
# STANDARD UPGRADE STEPS # STANDARD UPGRADE STEPS
#================================================= #=================================================
@ -155,9 +148,9 @@ yunohost service add $app --description "Responsive web-based XMPP client" --log
( (
cd "$final_path" cd "$final_path"
curl -sS https://getcomposer.org/installer | php${phpversion} -- --version="1.10.16" --install-dir="$final_path" \ 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 install --no-interaction --quiet && php$phpversion composer.phar install --no-interaction --quiet
) )
#================================================= #=================================================
@ -166,7 +159,7 @@ yunohost service add $app --description "Responsive web-based XMPP client" --log
ynh_script_progression --message="Configuring database.." --weight=1 ynh_script_progression --message="Configuring database.." --weight=1
( (
cd "$final_path" cd "$final_path"
ynh_exec_as $app php${phpversion} composer.phar movim:migrate ynh_exec_as $app php$phpversion composer.phar movim:migrate
) )
#================================================= #=================================================