mirror of
https://github.com/tommytran732/Arch-Setup-Script
synced 2024-11-24 18:41:33 -05:00
Remove unnecessary sudo calls
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
8d46f9561b
commit
f7b46e88b9
@ -497,10 +497,10 @@ if [ "${install_mode}" = 'server' ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
## Set umask to 077.
|
## Set umask to 077.
|
||||||
sudo sed -i 's/^UMASK.*/UMASK 077/g' /mnt/etc/login.defs
|
sed -i 's/^UMASK.*/UMASK 077/g' /mnt/etc/login.defs
|
||||||
sudo sed -i 's/^HOME_MODE/#HOME_MODE/g' /mnt/etc/login.defs
|
sed -i 's/^HOME_MODE/#HOME_MODE/g' /mnt/etc/login.defs
|
||||||
sudo sed -i 's/^USERGROUPS_ENAB.*/USERGROUPS_ENAB no/g' /mnt/etc/login.defs
|
sed -i 's/^USERGROUPS_ENAB.*/USERGROUPS_ENAB no/g' /mnt/etc/login.defs
|
||||||
sudo sed -i 's/umask 022/umask 077/g' /mnt/etc/bash.bashrc
|
sed -i 's/umask 022/umask 077/g' /mnt/etc/bash.bashrc
|
||||||
|
|
||||||
# Finish up
|
# Finish up
|
||||||
echo "Done, you may now wish to reboot (further changes can be done by chrooting into /mnt)."
|
echo "Done, you may now wish to reboot (further changes can be done by chrooting into /mnt)."
|
||||||
|
Loading…
Reference in New Issue
Block a user