update tool/update-upgrade/ss-do-upgrade.sh.

Signed-off-by: shenmo <jifengshenmo@outlook.com>
This commit is contained in:
shenmo 2024-11-14 11:54:33 +00:00 committed by Gitee
parent b778e351b3
commit 8dc1854f2e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,9 +1,9 @@
#!/bin/bash
xhost +
if [ "$(id -u)" != "0" ] ; then
if [ "$IS_ACE_ENV" = "1" ];then
/opt/durapps/spark-store/bin/store-helper/pass-auth.sh "$0" "$@"
else
xhost +
pkexec "$0" "$@"
exit
fi