Closes: #1293.
Tests:
- Copy /usr/share/apache2/default-site/index.html to /var/www/html/index.html.
Apply the patches. The file in /var/www/html/index.html is removed.
- Create a new custom file in /var/www/html/index.html. Increment the setup
version so apache2 setup is run. The file is not removed.
- Copy the default file again and run setup again. The file is removed.
- Increment setup version again and there are no errors due to missing file.
[sunil: Add check to ensure that only default files are not removed]
Signed-off-by: Frederico Gomes <fredericojfgomes@gmail.com>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Tested-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>