mirror of
https://github.com/YunoHost-Apps/movim_ynh.git
synced 2024-09-03 19:46:19 +02:00
parent
29fa31f6fd
commit
1075b6c7ab
6 changed files with 9 additions and 19 deletions
|
@ -25,8 +25,6 @@
|
|||
incorrect_path=1
|
||||
port_already_use=1
|
||||
change_url=0
|
||||
;;; Levels
|
||||
Level 5=auto
|
||||
;;; Options
|
||||
Email=
|
||||
Notification=none
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"en": "Web-based cross-platform XMPP client",
|
||||
"fr": "Client XMPP multiplateforme basé sur le Web"
|
||||
},
|
||||
"version": "0.18~ynh3",
|
||||
"version": "0.18~ynh4",
|
||||
"url": "https://movim.eu",
|
||||
"license": "AGPL-3.0-or-later",
|
||||
"maintainer": {
|
||||
|
|
|
@ -49,7 +49,6 @@ ynh_backup --src_path="$final_path"
|
|||
|
||||
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||
|
||||
|
||||
#=================================================
|
||||
# BACKUP THE PHP-FPM CONFIGURATION
|
||||
#=================================================
|
||||
|
|
|
@ -169,8 +169,8 @@ mkdir -p $cache_dir
|
|||
chown -R $app $cache_dir
|
||||
|
||||
cd "$final_path"
|
||||
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 composer.phar $app:migrate
|
||||
ynh_exec_as $app php$phpversion daemon.php config --username=$admin --password=$password
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
|
|
|
@ -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_restore_file --origin_path="/etc/systemd/system/$app.service"
|
||||
systemctl enable $app.service
|
||||
systemctl enable $app.service --quiet
|
||||
|
||||
#=================================================
|
||||
# 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
|
||||
|
|
|
@ -73,13 +73,6 @@ ynh_clean_setup () {
|
|||
# Exit if an error occurs during the execution of the script
|
||||
ynh_abort_if_errors
|
||||
|
||||
#=================================================
|
||||
# CHECK THE PATH
|
||||
#=================================================
|
||||
|
||||
# Normalize the URL path syntax
|
||||
path_url=$(ynh_normalize_url_path $path_url)
|
||||
|
||||
#=================================================
|
||||
# STANDARD UPGRADE STEPS
|
||||
#=================================================
|
||||
|
@ -155,9 +148,9 @@ yunohost service add $app --description "Responsive web-based XMPP client" --log
|
|||
|
||||
(
|
||||
cd "$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 install --no-interaction --quiet
|
||||
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 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
|
||||
(
|
||||
cd "$final_path"
|
||||
ynh_exec_as $app php${phpversion} composer.phar movim:migrate
|
||||
ynh_exec_as $app php$phpversion composer.phar movim:migrate
|
||||
)
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue