new conf files + fix bug in conf_ntp with devuan 5, fix a bug with early debian/devuan version, added git support for profile
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
# https://opensource.org/licenses/BSD-3-Clause
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
export VER_install_profile="0.0.7"
|
||||
export VER_install_profile="0.1.0"
|
||||
export DEP_install_profile="install_pkg"
|
||||
|
||||
install_profile()
|
||||
@@ -23,11 +23,19 @@ install_profile()
|
||||
|
||||
for usr in $usrlist; do
|
||||
prnt I "Installing profile for user $usr..."
|
||||
backup_dist $usr/{.,}profile $usr/.bashrc
|
||||
install_file profile/{{.,}profile,.bashrc} $usr/
|
||||
tag_file $usr/{{.,}profile,.bashrc}
|
||||
install_file profile/.tmux/.tmux.conf{,.local} $usr/
|
||||
tag_file $usr/.tmux.conf{,.local}
|
||||
backup_dist $usr/{.profile,.bashrc}
|
||||
install_file profile/{.profile,.bashrc} $usr/
|
||||
tag_file $usr/{.profile,.bashrc}
|
||||
#install_file profile/.tmux/.tmux.conf{,.local} $usr/
|
||||
#tag_file $usr/.tmux.conf{,.local}
|
||||
if [[ ! -d $usr/profile ]]; then
|
||||
(
|
||||
cd $usr
|
||||
git config --global http.sslverify false
|
||||
git clone https://git.geoffray-levasseur.org/fatalerrors/profile.git
|
||||
git config --global http.sslverify true
|
||||
)
|
||||
fi
|
||||
done
|
||||
unset usrlist
|
||||
|
||||
@@ -39,7 +47,7 @@ install_profile()
|
||||
|
||||
precheck_install_profile()
|
||||
{
|
||||
file_must_exists profile/{motd,{.,}profile,.bashrc,.tmux/.tmux.conf{,.local}}
|
||||
file_must_exists profile/{motd,{.profile,.bashrc,.tmux/.tmux.conf{,.local}}
|
||||
}
|
||||
|
||||
export -f install_profile
|
||||
|
||||
Reference in New Issue
Block a user