We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a17a79 commit 55e6a6fCopy full SHA for 55e6a6f
debian/preinst
@@ -25,20 +25,12 @@ upgrade)
25
# referencing the old /export/home paths continue to function
26
# while also enabling new logins under /home to work.
27
fs_tab=/etc/fstab
28
- auto_master=/etc/auto.master
29
30
if grep -q "\/export\/home" "$fs_tab"; then
31
sed -i 's|/export/home|/home|g' "$fs_tab"
32
mount /home
33
fi
34
35
- if [[ -e $auto_master ]]; then
36
- if grep -q "\/home\s+auto_home\s+-nobrowse" "$auto_master"; then
37
- sed -i 's|/home auto_home -nobrowse|#/home auto_home -nobrowse|g' "$auto_master"
38
- systemctl restart autofs
39
- fi
40
41
-
42
passwd_file=/etc/passwd
43
if grep -q "\/export\/home" "$passwd_file"; then
44
sed -i 's/\/export\/home/\/home/g' /etc/passwd
0 commit comments