There is no possibility to identify where my recipe fails and/or check what currently is being executed.
It may be useful to add logging capabilities when debugging or simply to verify that installation is carried out as expected. At the end of every command, add the following:
apt-get update -y && apt-get -y install apache2 php5 php5-gd php-xml-parser php5-intl php5-sqlite php5-mysql smbclient curl libcurl3 php5-curl &>> /var/log/recipe.log
Please note that the
&& have been added to put
&>>/var/log/recipe.log only once.
This will create a log that can be checked while the recipe is being executed:
root@OwnCloudRecipe:~# tail -f /var/log/recipe.log owncloud/files/webdav.php owncloud/README owncloud/robots.txt owncloud/config/ owncloud/config/config.sample.php owncloud/cron.php * Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 126.96.36.199 for ServerName ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 188.8.131.52 for ServerName ...done.