From: Igor Muratov <migor@altlinux.ru> To: sisyphus@altlinux.ru Subject: Re: [sisyphus] apt-get remove apache Date: Mon, 07 Apr 2003 21:12:00 +0400 Message-ID: <3E91B160.2060004@altlinux.ru> (raw) In-Reply-To: <20030405130142.GF6873@sam-solutions.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Alexander Bokovoy пишет: | On Sat, Apr 05, 2003 at 03:56:03PM +0300, Vladimir Alyekhin wrote: | |>Hi Alexander! |>On Sat, Apr 05, 2003 at 02:08:16PM +0300, you wrote: |> |>>On Sat, Apr 05, 2003 at 10:52:08AM +0300, Vladimir Alyekhin wrote: |>> |>>>if [ $1 = 0 ]; then |>>> rm -rf /var/log/httpd/* |>>>fi |>>> |>>>Почему папка /var/log/httpd принадлежит пакету apache-common а сносит ее пакет apache??? |>> |>>В данном случае удаляется не /var/log/httpd, а его содержимое. Пакет |>>apache сам каталог не удаляет, посмотрите внимательнее. |> |>Я именно поэтому и спрашивал, зачем за собой удалять логи? А если в |>/var/log/httpd пишет еще и httpd-perl? (у меня именно так и было) | | Я вижу два решения: | 1. Перенести владение каталогом /var/log/httpd куда-нибудь в filesystem, | поскольку, по-хорошему, это общесистемный каталог протоколов веб-серверов | (не только Apache). | 2. Принять некоторые правила наименования логов для Apache и Apache-perl и | учитывать их при удалении. | Я хочу предложить принять еще одно правило. Это не связано с логам но тем не менее... Postinstall скрипты некоторых пакетов правят файл /etc/httpd/conf/httpd.conf с целью добавить свою конфигурацию в апач причем не всегда это делают удачно. Нельзя ли в место этого добавить в конце этого файла строчку Include conf/addon-modules/*.conf Однако перед строкой Include conf/vhosts/Vhosts.conf Тогда пакету достаточно будет только положить в нужный каталог файлик и дернуть апач. Так же легко все удаляется. Что скажете? - -- With best regards System administrator Igor Muratov mailto:migor at altlinux.ru -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE+kbFgqjgjB/MK76QRAlh7AJ4jEkq7o8iMLhLKFQ+7G25f9aVp2gCfVLNH A14gX4b/c7lfHrx+U8rtKYo= =BeBk -----END PGP SIGNATURE-----
next prev parent reply other threads:[~2003-04-07 17:12 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-04-04 18:08 Vladimir Alyekhin 2003-04-04 18:34 ` Alexander Bokovoy 2003-04-05 7:52 ` Vladimir Alyekhin 2003-04-05 8:22 ` Мельников Максим Андреевич 2003-04-05 11:08 ` Alexander Bokovoy 2003-04-05 12:56 ` Vladimir Alyekhin 2003-04-05 13:01 ` Alexander Bokovoy 2003-04-07 17:12 ` Igor Muratov [this message] 2003-04-07 15:35 ` Sviatoslav Sviridov 2003-04-07 19:38 ` Alexander Bokovoy 2003-04-07 20:16 ` [sisyphus] " Michael Shigorin 2003-04-07 20:39 ` Dmitry V. Levin 2003-04-08 10:20 ` Michael Shigorin 2003-04-08 11:24 ` Dmitry V. Levin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=3E91B160.2060004@altlinux.ru \ --to=migor@altlinux.ru \ --cc=sisyphus@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git