few modules improved

This commit is contained in:
fatalerrors
2021-07-23 12:24:11 +02:00
parent cbacea764f
commit 3696a720da
4 changed files with 32 additions and 8 deletions

View File

@@ -5,17 +5,27 @@ export VER_install_profile="0.0.1"
install_profile()
{
installfile ansi_shadow.flf /usr/share/figlet/ansi_shadow.flf
# Create a dir in home so /home/* is always interpreted correctly
mkdir -pv /home/dummy
for usr in /root /home/*; do
backupdist $usr/{,.}profile $usr/.bashrc
installfile {{.,}profile,.bashrc} $usr/
done
# Remove dummy dir
rm -rf /home/dummy
backupdist /etc/motd
installfile motd /etc/motd
}
precheck_install_profile()
{
:
[[ -d /home/dummy ]] && (
prnt E "/home/dummy existe mais est réservé a un usage interne."
die 155
)
}
export -f install_profile