install_profile: do not treat motd, simplification of copy command
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
# https://opensource.org/licenses/BSD-3-Clause
|
# https://opensource.org/licenses/BSD-3-Clause
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
export VER_install_profile="0.0.2"
|
export VER_install_profile="0.0.3"
|
||||||
export DEP_install_profile="install_pkg"
|
export DEP_install_profile="install_pkg"
|
||||||
|
|
||||||
install_profile()
|
install_profile()
|
||||||
@@ -23,12 +23,9 @@ install_profile()
|
|||||||
# Create a dir in home so /home/* is always interpreted correctly
|
# Create a dir in home so /home/* is always interpreted correctly
|
||||||
for usr in $usrlist; do
|
for usr in $usrlist; do
|
||||||
backupdist $usr/{,.}profile $usr/.bashrc
|
backupdist $usr/{,.}profile $usr/.bashrc
|
||||||
installfile {{.,}profile,.bashrc} $usr/
|
installfile {.,}profile .bashrc $usr/
|
||||||
done
|
done
|
||||||
unset usrlist
|
unset usrlist
|
||||||
|
|
||||||
backupdist /etc/motd
|
|
||||||
installfile motd /etc/motd
|
|
||||||
}
|
}
|
||||||
|
|
||||||
precheck_install_profile()
|
precheck_install_profile()
|
||||||
|
|||||||
Reference in New Issue
Block a user