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:
parent
868a9e4497
commit
ef9b3e645f
3 changed files with 10 additions and 5 deletions
|
@ -43,11 +43,10 @@ ram.runtime = "50M"
|
||||||
type = "group"
|
type = "group"
|
||||||
default = "visitors"
|
default = "visitors"
|
||||||
|
|
||||||
[install.admin]
|
[install.admin_jid]
|
||||||
type = "user"
|
type = "string"
|
||||||
|
help.en = "The Jabber ID of the user you want as admin."
|
||||||
[install.password]
|
help.fr = "L'identifiant Jabber de l'utilisateur que vous voulez rendre admin."
|
||||||
type = "password"
|
|
||||||
|
|
||||||
[resources]
|
[resources]
|
||||||
[resources.sources.main]
|
[resources.sources.main]
|
||||||
|
|
|
@ -35,6 +35,9 @@ ynh_script_progression --message="Setting up source files..."
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source --dest_dir="$install_dir"
|
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"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R "$app:www-data" "$install_dir"
|
chown -R "$app:www-data" "$install_dir"
|
||||||
|
|
||||||
|
|
|
@ -49,6 +49,9 @@ ynh_script_progression --message="Upgrading source files..."
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep=".env"
|
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"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R "$app:www-data" "$install_dir"
|
chown -R "$app:www-data" "$install_dir"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue