Bug 29607 - При обновлении затирается файл /etc/nginx/sites-available.d/default.conf
Summary: При обновлении затирается файл /etc/nginx/sites-available.d/default.conf
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: nginx (show other bugs)
Version: unstable
Hardware: all Linux
: P3 critical
Assignee: Anton Farygin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-25 05:38 MSK by Evgenii Terechkov
Modified: 2013-11-28 04:52 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evgenii Terechkov 2013-11-25 05:38:13 MSK
root@teer /etc # git log -n 1 -p -- nginx/ |tail -n 25
diff --git a/nginx/sites-available.d/default.conf b/nginx/sites-available.d/default.conf
index ee059f6..55ac8ee 100644
--- a/nginx/sites-available.d/default.conf
+++ b/nginx/sites-available.d/default.conf
@@ -1,14 +1,14 @@
 server {
-       listen 80 default_server;
+       listen  localhost:80;
        # can't use wildcards in first server_name
-       server_name 10.20.3.12 192.168.200.7;
+       server_name localhost localhost.localdomain;
 
        location / {
-           root /home/teer/hasher/repo;
+           root /var/www/html;
 
-               autoindex on;
-               autoindex_exact_size on;
-               autoindex_localtime on;
+               # autoindex off;
+               # autoindex_exact_size on;
+               # autoindex_localtime off;

итого при обновлении всё красиво, всё запускается, вот только сайт перестает работать. Поймал при обновлении 1.4.3 -> 1.4.4
Comment 1 Repository Robot 2013-11-25 14:15:34 MSK
nginx-1.4.4-alt2 -> sisyphus:

* Mon Nov 25 2013 Denis Smirnov <mithraen@altlinux> 1.4.4-alt2
- use config(noreplace) for sites-available.d/default.conf (closes: #29607)
Comment 2 Evgenii Terechkov 2013-11-28 04:52:05 MSK
OK