[opensuse] aaa_base-extras keeps messing up alias.bash on update, how to prevent?
All, aaa_base-extras is a real pain. After going through the trouble to get rid of all the --color-auto stuff from grep, it's BACK... :( There used to be logic, I think that was a list provided by SuSEConfig or one of the sysconfig files that checked file sizes in /etc and if the current file size in /etc was not the original then any subsequent attempt to overwrite the file would cause the file to be installed as .rpmsav or the like. If something like that still exists, can I add /etc/profile.d/alias.bash to that check somehow? Also, why doesn't /etc/profile source something like /etc/profile.local? At least that way there would be one file where you could undo the non-standard stuff that would not be overwritten on every update? We could do it in /etc/bash.bashrc.local, but I'd much prefer putting revisions to the /etc/profile scheme in an /etc/profile.local so at least it tells me where the original came from. I'm looking for a system level solution that isn't overwritten on each update that can accomplish this. Hopefully something short of rpm -e aaa_base-extras. Is there any good solution to the aaa_base-extras fun? -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
"David C. Rankin" <drankinatty@suddenlinkmail.com> writes:
Also, why doesn't /etc/profile source something like /etc/profile.local? At least that way there would be one file where you could undo the non-standard stuff that would not be overwritten on every update?
/etc/profile does source /etc/profile.local: ,----[ Exerpt from /etc/profile ] | if test "$is" != "ash" ; then | # | # And now let's see if there is a local profile | # (for options defined by your sysadmin, not SuSE Linux) | # | test -s /etc/profile.local && . /etc/profile.local | fi `---- I have used one for years. Charles -- "On a normal ascii line, the only safe condition to detect is a 'BREAK' - everything else having been assigned functions by Gnu EMACS." (By Tarl Neustaedter)
On 07/24/2014 01:23 AM, Charles Philip Chan wrote:
/etc/profile does source /etc/profile.local:
,----[ Exerpt from /etc/profile ] | if test "$is" != "ash" ; then | # | # And now let's see if there is a local profile | # (for options defined by your sysadmin, not SuSE Linux) | # | test -s /etc/profile.local && . /etc/profile.local | fi `----
I have used one for years.
Charles
Thank you Charles! Not only am I getting old, I'm going f'ing blind too.... -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Charles Philip Chan
-
David C. Rankin