1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/movim_ynh.git synced 2024-09-03 19:46:19 +02:00

Patch call to php by composer

This commit is contained in:
Salamandar 2024-07-10 10:12:06 +02:00
parent 868a9e4497
commit ef9b3e645f
3 changed files with 10 additions and 5 deletions

View file

@ -43,11 +43,10 @@ ram.runtime = "50M"
type = "group"
default = "visitors"
[install.admin]
type = "user"
[install.password]
type = "password"
[install.admin_jid]
type = "string"
help.en = "The Jabber ID of the user you want as admin."
help.fr = "L'identifiant Jabber de l'utilisateur que vous voulez rendre admin."
[resources]
[resources.sources.main]

View file

@ -35,6 +35,9 @@ ynh_script_progression --message="Setting up source files..."
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir"
# Patch call to php in composer
ynh_replace_string -f "$install_dir/composer.json" --match_string='"vendor/bin/phinx' --replace_string='"@php vendor/bin/phinx'
chmod -R o-rwx "$install_dir"
chown -R "$app:www-data" "$install_dir"

View file

@ -49,6 +49,9 @@ ynh_script_progression --message="Upgrading source files..."
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep=".env"
# Patch call to php in composer
ynh_replace_string -f "$install_dir/composer.json" --match_string='"vendor/bin/phinx' --replace_string='"@php vendor/bin/phinx'
chmod -R o-rwx "$install_dir"
chown -R "$app:www-data" "$install_dir"