diff --git a/scripts/install b/scripts/install index dee4871..699c52d 100644 --- a/scripts/install +++ b/scripts/install @@ -107,7 +107,7 @@ ynh_add_nginx_config # configure friendica -sudo cp /var/www/friendica/htconfig.php /var/www/friendica/.htconfig.php +sudo cp "/var/www/$app/htconfig.php" "/var/www/$app/.htconfig.php" ynh_replace_string "your.mysqlhost.com" "localhost" "$final_path/.htconfig.php" ynh_replace_string "mysqlusername" "$db_name" "$final_path/.htconfig.php" ynh_replace_string "mysqldatabasename" "$db_name" "$final_path/.htconfig.php" @@ -157,7 +157,7 @@ sudo cp ../conf/poller-cron /etc/cron.d/$app ynh_store_file_checksum "$final_path/.htconfig.php" # Run composer -cd $final_path && sudo php bin/composer.phar install +(cd $final_path && sudo php bin/composer.phar install) #================================================= # SETUP SSOWAT diff --git a/scripts/restore b/scripts/restore index 4c29748..0310723 100644 --- a/scripts/restore +++ b/scripts/restore @@ -95,7 +95,7 @@ sudo chmod -R 777 $final_path/view/smarty3 ynh_restore_file "/etc/cron.d/$app" # Run composer -cd $final_path && sudo php bin/composer.phar install +(cd $final_path && sudo php bin/composer.phar install) # unprotected_uris allows SSO credentials to be passed anyway. ynh_app_setting_set $app unprotected_uris "/" diff --git a/scripts/upgrade b/scripts/upgrade index 05490ac..807ab96 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -104,7 +104,7 @@ sed -i "s@YNH_WWW_PATH@$final_path@g" ../conf/poller-cron sudo cp ../conf/poller-cron /etc/cron.d/$app # Run composer -cd $final_path && sudo php bin/composer.phar install +(cd $final_path && sudo php bin/composer.phar install) #================================================= # SETUP SSOWAT