Keep previous /etc/hostname and /etc/localtime
This commit is contained in:
parent
39dd673d79
commit
f6e56798fd
1 changed files with 5 additions and 0 deletions
5
vps2arch
5
vps2arch
|
@ -99,6 +99,10 @@ save_root_pass() {
|
|||
chmod 0600 "/root.$cpu_type/root.passwd"
|
||||
}
|
||||
|
||||
backup_old_files() {
|
||||
cp -fL /etc/hostname /etc/localtime "/root.$cpu_type/etc/" || true
|
||||
}
|
||||
|
||||
delete_all() {
|
||||
# Remove immutable flag from any files / directories
|
||||
if command -v chattr >/dev/null 2>&1; then
|
||||
|
@ -320,6 +324,7 @@ cd /
|
|||
download_and_extract_bootstrap
|
||||
configure_chroot
|
||||
save_root_pass
|
||||
backup_old_files
|
||||
delete_all
|
||||
install_packages
|
||||
restore_root_pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue