新增新建home目录功能

This commit is contained in:
gfdgd xi 2023-03-18 13:17:02 +08:00
parent 0fe546fe86
commit b693f9c065

View File

@ -34,6 +34,8 @@ mount -o bind /usr/share/fonts ./usr/share/fonts
if [ ! -d "home/$2" ]; then
# 新建用户,且密码为 123456以便读写
"$programPath/pardus-chroot" . bash /opt/apps/deepin-wine-runner/ChangePassword.sh "$2"
mkdir -p "home/$2"
chmod 777 -Rv "home/$2"
fi
# 挂载用户目录到 /root默认 $HOME 路径)
if [[ $2 == "root" ]]; then