first commit

This commit is contained in:
2023-06-25 12:15:20 +08:00
commit 42c7d2aa17
8 changed files with 77 additions and 0 deletions

10
run.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
chrootEnvPath=/opt/new-system-env
#if [[ `whoami` != "root" ]]; then
# echo 请使用 root 权限运行
# exit 1
#fi
command="$@"
#echo $command
sudo chroot $chrootEnvPath sudo -u $USER bash -c "$command"
#echo $@