added file dependency check, switched back to english, smaller fix and improvements
This commit is contained in:
@@ -13,7 +13,7 @@ export DEP_install_profile="install_pkg"
|
||||
|
||||
install_profile()
|
||||
{
|
||||
#installfile ansi_shadow.flf /usr/share/figlet/ansi_shadow.flf
|
||||
installfile profile/ansi_shadow.flf /usr/share/figlet/ansi_shadow.flf
|
||||
|
||||
local usrlist="/root"
|
||||
if find /home -mindepth 1 -maxdepth 1 -type d | read; then
|
||||
@@ -22,15 +22,19 @@ install_profile()
|
||||
|
||||
# Create a dir in home so /home/* is always interpreted correctly
|
||||
for usr in $usrlist; do
|
||||
backupdist $usr/{,.}profile $usr/.bashrc
|
||||
installfile {.,}profile .bashrc $usr/
|
||||
backupdist $usr/{.,}profile $usr/.bashrc
|
||||
installfile profile/{{.,}profile,.bashrc} $usr/
|
||||
installfile profile/.tmux/.tmux.conf{,.local} $usr/
|
||||
done
|
||||
unset usrlist
|
||||
|
||||
backupdist /etc/motd
|
||||
installfile profile/motd /etc/motd
|
||||
}
|
||||
|
||||
precheck_install_profile()
|
||||
{
|
||||
:
|
||||
file_exists profile/{{.,}profile,.bashrc,.tmux/.tmux.conf{,.local}}
|
||||
}
|
||||
|
||||
export -f install_profile
|
||||
|
||||
Reference in New Issue
Block a user