修改makefile

This commit is contained in:
2022-12-04 19:29:09 +08:00
parent 08dbe1cb80
commit c8ccc1dff5
30 changed files with 1620 additions and 112 deletions

View File

@@ -0,0 +1,36 @@
#!/bin/bash
if [ ` whoami ` != "root" ]; then
echo "Only root can run me"
exit 1
fi
if [ ! -d "$1" ]; then
echo "路径不存在!"
exit 1
fi
echo $0
echo $1
echo $2
#echo $3
# 挂载必备目录
cd "$1"
umount ./dev
umount ./dev/pts
umount ./proc
umount ./etc/resolv.conf
umount ./sys
umount ./dev/shm
# 挂载 Wine 运行器目录
umount ./opt/apps/deepin-wine-runner/
# 挂载字体
umount ./usr/share/fonts
# 挂载用户目录到 /root默认 $HOME 路径)
umount ./root
for username in $(ls ./home)
do
echo ./home/$username
umount ./home/$username
# if [ -d ./home/$username/.deepinwine/$CONTAINER_NAME ]
# then
# rm -rf ./home/$username/.deepinwine/$CONTAINER_NAME
# fi
done