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

Patch daemon code

This commit is contained in:
Salamandar 2024-07-10 14:15:26 +02:00
parent 861118e378
commit 25e519aeaa
2 changed files with 6 additions and 0 deletions

View file

@ -38,6 +38,9 @@ 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'
# Patch call to php in daemon code
ynh_replace_string -f "$install_dir/src/Movim/Daemon/Session.php" --match_string="exec php" --replace_string="exec php$phpversion"
chmod -R o-rwx "$install_dir"
chown -R "$app:www-data" "$install_dir"

View file

@ -56,6 +56,9 @@ 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'
# Patch call to php in daemon code
ynh_replace_string -f "$install_dir/src/Movim/Daemon/Session.php" --match_string="exec php" --replace_string="exec php$phpversion"
chmod -R o-rwx "$install_dir"
chown -R "$app:www-data" "$install_dir"