fix: In ACE can't use updater

This commit is contained in:
2024-10-25 13:11:14 +08:00
parent 44889c03d3
commit eadd74b71c
2 changed files with 51 additions and 2 deletions

View File

@@ -1,7 +1,11 @@
#!/bin/bash
if [ "$(id -u)" != "0" ] ; then
pkexec "$0" "$@"
exit
if [[ IS_ACE_ENV="1" ]];then
/opt/durapps/spark-store/bin/store-helper/pass-auth.sh "$0" "$@"
else
pkexec "$0" "$@"
exit
fi
fi
trap "rm -f /tmp/spark-store/upgradeStatus.txt" EXIT
source /opt/durapps/spark-store/bin/bashimport/transhell.amber