修改文件名
This commit is contained in:
10
gx-env-run
Executable file
10
gx-env-run
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
chrootEnvPath=/opt/new-system-env
|
||||
#if [[ `whoami` != "root" ]]; then
|
||||
# echo 请使用 root 权限运行
|
||||
# exit 1
|
||||
#fi
|
||||
command="$@"
|
||||
#echo $command
|
||||
pkexec env DISPLAY=$DISPLAY chroot $chrootEnvPath sudo -u $USER bash -c "$command"
|
||||
#echo $@
|
||||
Reference in New Issue
Block a user