Add .bashrc and .bash_profile to autodist home
This commit is contained in:
parent
f0eaac941b
commit
1617e30950
4
Makefile
4
Makefile
@ -1,5 +1,5 @@
|
||||
# Makefile for autodist
|
||||
# Copyright (C) 2006-2009 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
# Copyright (C) 2006-2014 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
#
|
||||
PACKAGE = autodist
|
||||
|
||||
@ -111,6 +111,8 @@ install-data:
|
||||
@$(INSTALL_SCRIPT) etc/cron.daily/40-autodist-upstream-updates $(DESTDIR)$(sysconfdir)/cron.daily/
|
||||
@$(INSTALL_SCRIPT) etc/logrotate.d/webbuild $(DESTDIR)$(sysconfdir)/logrotate.d/webbuild
|
||||
@$(INSTALL_DATA) autospec-conf $(DESTDIR)$(pck_statedir)/.autospec
|
||||
@$(INSTALL_DATA) autodist-bashrc $(DESTDIR)$(pck_statedir)/.bashrc
|
||||
@$(INSTALL_DATA) autodist-bash_profile $(DESTDIR)$(pck_statedir)/.bash_profile
|
||||
@touch $(DESTDIR)$(pck_statedir)/template/autoupdate/auto.success
|
||||
@touch $(DESTDIR)$(pck_statedir)/template/autoupdate/auto.skip
|
||||
|
||||
|
14
autodist-bash_profile
Normal file
14
autodist-bash_profile
Normal file
@ -0,0 +1,14 @@
|
||||
# .bash_profile
|
||||
|
||||
# Get the aliases and functions
|
||||
if [ -f ~/.bashrc ]; then
|
||||
. ~/.bashrc
|
||||
fi
|
||||
|
||||
# User specific environment and startup programs
|
||||
if [ -d $HOME/bin ]; then
|
||||
PATH=$PATH:$HOME/bin
|
||||
fi
|
||||
export PATH
|
||||
|
||||
unset USERNAME
|
8
autodist-bashrc
Normal file
8
autodist-bashrc
Normal file
@ -0,0 +1,8 @@
|
||||
# .bashrc
|
||||
|
||||
# User specific aliases and functions
|
||||
|
||||
# Source global definitions
|
||||
if [ -f /etc/bashrc ]; then
|
||||
. /etc/bashrc
|
||||
fi
|
Loading…
Reference in New Issue
Block a user